change the game/app state
State ID (see constants)
Optional
if true the state will be changed immediately (without waiting for the next frame)
Rest
extra arguments to be passed to the reset functions
change
state
// The onResetEvent method on the play screen will receive two args:// "level_1" and the number 3me.state.change(me.state.PLAY, "level_1", 3); Copy
// The onResetEvent method on the play screen will receive two args:// "level_1" and the number 3me.state.change(me.state.PLAY, "level_1", 3);
change the game/app state