JakeCake Posted November 2, 2014 Share Posted November 2, 2014 I am trying to have two states working at the same time, which is going as suspected. So I have state A running, and on top of that I start state B. Then after a while I want to end state B so only state A is running again. The problem is that I can't shutdown state B. Calling the shutdown function doesn't really do anything. And shutting it down by doing "game.state.start('A', true);" restarts state A, which is unwanted. I just want to shutdown state B and return to state A. Link to comment Share on other sites More sharing options...
sombriks Posted November 2, 2014 Share Posted November 2, 2014 Hello Jake, https://github.com/photonstorm/phaser/wiki/Phaser-General-Documentation-:-States So, you're saying that shutdown hook on state definition aren't being called? what do you have on create, update, etc? Is there any timeout, timer, tween, anything, that keeps running even if you start another state? Link to comment Share on other sites More sharing options...
lewster32 Posted November 3, 2014 Share Posted November 3, 2014 I'm pretty sure only one state can run at any one time - starting a new state shuts down the current state. Link to comment Share on other sites More sharing options...
Recommended Posts