Cryptonomicon Posted April 29, 2014 Share Posted April 29, 2014 probably bleedingly obvious but what is the intended mechanism for ending a state? I keep looking for a state.end() call - it seems untidy to call the next state before all the cleanup of the previous state has been called. Link to comment Share on other sites More sharing options...
jackrugile Posted April 29, 2014 Share Posted April 29, 2014 Hey, I think you are looking for shutdown(): http://docs.phaser.io/Phaser.State.html#shutdown Rich has a good explanation of all the special reserved functions for states here: http://www.html5gamedevs.com/topic/1372-phaser-function-order-reserved-names-and-special-uses/ Link to comment Share on other sites More sharing options...
valueerror Posted April 30, 2014 Share Posted April 30, 2014 i was hoping that calling a new state would automatically do a proper cleanup ??!!?? doesn't it? Link to comment Share on other sites More sharing options...
Recommended Posts