OnUpdate() Not Executing?

Monkey Forums/Monkey Programming/OnUpdate() Not Executing?

zoqfotpik(Posted 2012) [#1]
Something strange is happening in one of my apps and I am at a loss to explain why...

OnUpdate() is not executing.

OnRender() is executing, over and over again as normal. OnCreate() is executing. But debug print statements in OnUpdate() are never executed.

I am importing Mojo and my Game class does indeed extend App.

The mouse is never polled-- MouseX() and MouseY() are both always zero. But again, rendering happens just fine.

Any ideas?

This is all in attempting to implement decoupled game states, so OnUpdate is calling my manager update-- but OnUpdate() never executes in the first place. How can this be? I thought it was called automatically by App and its extends?


therevills(Posted 2012) [#2]
Have you added SetUpdateRate in OnCreate?


zoqfotpik(Posted 2012) [#3]
Arghlblarghl.

Must have erased that. Well, at least we don't have to worry about semicolons.

My state manager works now so that's good. Thanks very much for your quick help-- I hope to be able to pay it forward at some point here. I'm learning more and more, a lot of this decoupling stuff is foreign to me but it makes a huge amount of sense.

Writing about 200 lines of code a day, completely and totally fried.