quarks Posted January 1, 2015 Share Posted January 1, 2015 On the documentation page at https://github.com/photonstorm/phaser/wiki/Phaser-General-Documentation-:-States, in the 'Example of specialized states', there is this line of code: pacman.state.start('Boot').start('MainMenu').start('Game');Does this work? The intended semantics seem to be that state 'Boot' will be executed to completion, followed by 'MainMenu', followed by 'Game'. That suggests that the start method returns some sort of promise-like object whose start method queues the subsequent state change. But it appears that the start method of StateManager doesn't return anything at all. Am I missing something, or is the documentation incorrect? Jay Link to comment Share on other sites More sharing options...
rich Posted January 1, 2015 Share Posted January 1, 2015 I wouldn't recommend using this pattern (I'm not even sure it works any more to be honest). Looks like a very old wiki page. I probably ought to shut down the wiki as it isn't being maintained any more. Link to comment Share on other sites More sharing options...
Recommended Posts