Lord Strider Posted September 16, 2018 Share Posted September 16, 2018 I'm having problems when I call the state in my game if I call at the beginning based on the webstorage it normally calls but if during the game and I try to enter the phase it phaser.Game gets null only at this time and the parameters passed both coming from the webstorage and at the moment the game is exactly the same I'm almost 1 whole debuging and I do not find out why please anybody help. Quote Link to comment Share on other sites More sharing options...
dude78 Posted September 16, 2018 Share Posted September 16, 2018 @Lord Strider, I would like to see the part of code at least. Quote Link to comment Share on other sites More sharing options...
Lord Strider Posted September 16, 2018 Author Share Posted September 16, 2018 bellow this code in debug. Quote Link to comment Share on other sites More sharing options...
Lord Strider Posted September 17, 2018 Author Share Posted September 17, 2018 @dude78 I made a small video to show what is happening. My code is very extensive. Quote Link to comment Share on other sites More sharing options...
dude78 Posted September 17, 2018 Share Posted September 17, 2018 @Lord Strider, as far as I understand Phaser.game is NOT null BEFORE calling create. But when it's get called, Phaser.game gets NULL. Is that right? if so, could you please show how do you create the game variable, add states to the State Manager and where (what file) do you do all this stuff. 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.