trueicecold Posted December 8, 2014 Report 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! Quote Link to comment Share on other sites More sharing options...
trueicecold Posted December 8, 2014 Author Report 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.