Black screen when loading a new scene in Phaser3

I am getting a black screen and no errors at all in the console when I call a new scene. I am calling it like this: scene.scene.start(‘LevelTwo’); . (using scene.scene because of the location of the file that is calling it) I have added the level name to the list in my gameconfig file. The new level I am calling works fine if it is the first level called. Does anyone have any ideas on this? Thanks for your help!

You’d need to post your code to get a better idea of your setup. But to start you can try console logging your init/preload/create/update for the new scene to verify it’s running ok, and double check that the layering is correct (with moveAbove or bringToTop).

We solved it using console logging

1 Like

Hi, how have you solved it, I have a similar problem?
Thank you.

We placed console.logs in a variety of places at the top of the code that should have been being called. These caused the game to stop and actually display the errors that had not been showing up before. We also swapped out scene.scene.start(‘LevelTwo’) for scene.loadNextLevel() which was the biggest thing that worked for us. We had the scenes laid out in the order we wanted them called anyway so it worked great for us.

2 Likes