trueicecold Posted December 8, 2014 Share Posted December 8, 2014 Hey all I'm trying to use set the scale property on a game to Phaser.ScaleManager.RESIZE, however, writing this line of code directly after the "new Phaser.Game" crashes, saying scale is undefined...How can I tell when the game is ready to do operation on it? Thanks! Link to comment Share on other sites More sharing options...
trueicecold Posted December 8, 2014 Author Share Posted December 8, 2014 Just answered myself: I had to use the "create" callback from the "new Phaser.Game", and only then change state, since adding a state right after overrode the create callback... Link to comment Share on other sites More sharing options...
Recommended Posts