Monkey Demo - Cant Get Code to Work

Community Forums/Monkey Talk/Monkey Demo - Cant Get Code to Work

AvestheFox(Posted 2012) [#1]
The demos work just fine, its when I try to do a bit of coding of my own that there's a problem...

every time I try to compile the code there's nothing but a white screen.

I've even attempted copying and pasting code that supposedly works ... still nothing.

And yes, I've tried clearing the build folder and closing out MServer.

No luck.

what gives?

I really want to try this thing before buying it, but it seems the HTML5 bit just doesn't want to work for me... :(


BlitzSupport(Posted 2012) [#2]
Do you mean it's building and running but the 'game' just shows a white screen? If so, can you post a simple example that doesn't work? My wild guess would be that you've missed out SetUpdateRate in the OnCreate method...


AvestheFox(Posted 2012) [#3]
My guess is that you could be right. Here's my code:



but then again, in the tutorial documentation, their sample code also fails to include such:



and yes, that sample code is also showing the white screen :P

I'll see what I can do with your assumption though. Maybe it will fix my problem.


AvestheFox(Posted 2012) [#4]
nope, applied it. still no luck. :/


AvestheFox(Posted 2012) [#5]
Nevermind, I got it to work! :D I put SetUpdateRate in the wrong method... c_c silly me!


therevills(Posted 2012) [#6]
Good ol' SetUpdateRate... I really think this should be set by Mojo itself and that the user can override the value.