Knowledge.ToString()

Starting a New Scene is Not Working in Phaser 3

You started working on creating a game with Phaser and added couple of scenes. So far your game is working as expected.

Now you added one more scene using following code.

this.scene.start("MyNewScene");

But somehow you don’t see this scene in your game. You can only see a background. Even though you have copied the code, validated the spelling for scene class name and string but still no luck.

Resolution

Once you create a new scene, make sure you add a scene to game config. Without that you will not be able to view scene.

Share

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *