Want to use default state parameter
shohan4556 opened this issue · 2 comments
shohan4556 commented
Hello, I want to use Phaser default state parameter like this mystate1.start(mystate2, clearWorld, clearCache, parameter)
but remember I also want to smooth transition so I have added this
mystate1.start('mystate2', Phaser.Plugin.StateTransition.Out.SlideBottom);
So How can I clear cache and pass parameter ?
cristianbote commented
mystate1.start('mystate2', Phaser.Plugin.StateTransition.Out.SlideBottom, null, 'foo', 'baz');
Also, check this out: https://github.com/photonstorm/phaser/blob/v2.4.6/src/core/StateManager.js#L283
Basically, everything after the 2nd param is passed onto the new state.
shohan4556 commented
great thank you.