change the game/app state
State ID (see constants)
if true the state will be changed immediately
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