Resuming scene

First of all Merry Christmas to all of you …:santa:

In my game scene I have created a button ‘quit’ ,on pressing the quit button ,I pause the game scene and a new scene opens up with a dialogbox having buttons yes and no ,if user presses the button no ,then I resume the game scene ,the quitgame scene gets stopped and the player will return to the game scene else goes to the menu scene if the player presses the yes button.

But the problem is when I press the no button the game scene doesnt shows up and nothing is displayed also there is no error in the console .

I’m having the same problem with mine too. My research has led to some likely answers which I haven’t experiements/translated to my situation.

Here’s what I’ve found so far:

@PBMCube

Thanks for the links,still the problem not fully solved ,currently experimenting different techniques .

Do you have sample code we can look at?

I implemented a pause scene using this example without any problems.

appreciate the feedback

Thanks @B3L7 and all … :smile:

Problem solved …

On my gameScene I have used this -

this.scene.pause();
this.scene.launch(‘quitMenu’);

And on my quitGame scene menu -

If user presses YES button -

this.scene.stop();
this.scene.stop(‘gameScene’) ;
this.scene.start(‘menuScene’);

Else If user presses NO button -

this.scene.stop();
this.scene.resume(‘gameScene’);

2 Likes