qdrj Posted February 10, 2014 Share Posted February 10, 2014 Hi, I would like to create new states with additional params. For example when I creating new Level I want to pass levelNumber like thisvar level:Level = new Level(levelNumber);this.game.state.start(level);How can i do this? Link to comment Share on other sites More sharing options...
plicatibu Posted February 10, 2014 Share Posted February 10, 2014 I create some "global" variables in the game to keep tracking of variables between states transitions. Link to comment Share on other sites More sharing options...
Recommended Posts