Jump to content

Global variables?


StarBright
 Share

Recommended Posts

Hello,

just to make sure you can actually send data from one state to another in phaser. Apart from that it should be straightforward, you have your var game = new Phaser.Game(...); so you can just add it to your game as a property, something as game.myData or whatever you find suitable works without any problems.

There is quite a number of post about it.

Or one for all on the forum.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...