What am I missing?
Monkey Targets Forums/Flash/What am I missing?
| ||
Is this the wrong name for OnUpdate, or is something else broken?Method OnUpdate:Int() Print "OnUpdate" Return 0 End Method because nothing prints... OnCreate and OnRender both work fine :-( (version 30) |
| ||
Have you done SetUpdateRate in OnCreate? |
| ||
Damn... I knew I would have to read the docs at some point! Thanks! Note that OnUpdate is only called if SetUpdateRate has been called to start the update timer Kind of makes sense when it is put like that... Time to have a proper rummage in the docs... |
| ||
I think I made the case in beta for SetUpdateRate having a non-zero default value... |
| ||
And the case that everyone read the docs, is probably up there too... But yes, I can't imagine a typical situation where you wouldn't be updating and rendering. |
| ||
A few times this has got me :) |