Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to pass parameters to the Preload state #104

Closed
zfreiberg opened this issue Aug 28, 2014 · 1 comment
Closed

A way to pass parameters to the Preload state #104

zfreiberg opened this issue Aug 28, 2014 · 1 comment
Milestone

Comments

@zfreiberg
Copy link
Contributor

Current work around is the save these vales to the game object

@BenjaminHarding
Copy link
Contributor

You can now pass parameters to the preload method though the switchState method.

These parameters are the fifth argument in the switchState method.

this.game.states.switchState('StateName', null, initParams, createParameters, preloadParameters);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants