Lord Strider

I m problem in Phaser 2 CE `game` argument (null) phaser.js:45990 

Recommended Posts

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.

imagen-1.png

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.