Hi everyone !
I experiment a strange problem, when I try to transition to another scene using this.scene.start(‘nameOfTheScene’);
I get a black screen without the text contained into this scene.
Also, if I try a this.scene.restart() I have the following errors :
TypeError: this.frame.source is null
TypeError: this.source is null
Hi ! Thank you very much for your correction. If I understand it correctly, the problem was that I didn’t used a capital S for Phaser.Scene in my scene declaration.
And thanks for the debug method of scene, I didn’t find the way to debug efficiently in Phaser 3:
callbacks: {
postBoot: function (game) {
game.scene.dump();
}
}
A last question. When I try to restart my first scene (the one where the game is) I get the following error :
TypeError: this.frame.source is null
TypeError: this.source is null
Do you know where could it come from or at least how I could debug this one ?