# How to start new scene when the game is paused?

**URL:** <https://phaser.discourse.group/t/how-to-start-new-scene-when-the-game-is-paused/10311>\
**Category:** Phaser 3\
**Created:** [September 24, 2021, 9:33am UTC](https://phaser.discourse.group/t/how-to-start-new-scene-when-the-game-is-paused/10311 "2021-09-24T09:33:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benanson](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@benanson](https://phaser.discourse.group/u/benanson)\
**Post date:** [September 24, 2021, 9:33am UTC](https://phaser.discourse.group/t/how-to-start-new-scene-when-the-game-is-paused/10311/1 "2021-09-24T09:33:00Z")

</div>

Hello  
I have three scenes  
scene A, scene B, sceneC

In scene A pause the game

```javascript
this.input.keyboard.on('keydown-P', function (event) {
 this.scene.launch('sceneB')
 this.scene.pause();
}, this);

```

In sceneB ,Stop paused and return to sceneA:

```javascript
// Resume the Game
this.input.keyboard.on('keydown-P', function (event) {
 this.scene.stop();
  this.scene.resume('sceneA');
}, this);

```

But I have no idea how to go to sceneC , when I in the sceneB.

```javascript
//go to Scene C
this.input.keyboard.on('keydown-R', function (event) {
  this.scene.start('sceneC');
}, this);

```

Does anyone know how to start a new scene when the game is paused??  
Thank you very much

---

<div class="post-metadata">

**Author:** ![Un\_Gamer](https://avatars.discourse-cdn.com/v4/letter/u/a6a055/32.png) [@Un\_Gamer](https://phaser.discourse.group/u/Un_Gamer)\
**Post date:** [September 24, 2021, 11:11am UTC](https://phaser.discourse.group/t/how-to-start-new-scene-when-the-game-is-paused/10311/2 "2021-09-24T11:11:30Z")

</div>

You can use `this.scene.start(sceneKey);` in Scene A

```javascript
this.input.keyboard.on('keydown-P', function (event) {
 this.scene.launch('sceneB')
 this.scene.pause();
 this.scene.start('newScene');
}, this);

```

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [September 24, 2021, 4:04pm UTC](https://phaser.discourse.group/t/how-to-start-new-scene-when-the-game-is-paused/10311/3 "2021-09-24T16:04:12Z")

</div>

> [@benanson](#):
>
> ```javascript
> //go to Scene C
> this.input.keyboard.on('keydown-R', function (event) {
> this.scene.start('sceneC');
> }, this);
> 
> ```

This should work, as long as it’s in sceneB. It doesn’t matter that sceneA is paused.

What happens?

---

<div class="post-metadata">

**Author:** ![StinOfSin](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/stinofsin/32/5625_2.png) [@StinOfSin](https://phaser.discourse.group/u/StinOfSin)\
**Post date:** [September 25, 2021, 11:39am UTC](https://phaser.discourse.group/t/how-to-start-new-scene-when-the-game-is-paused/10311/4 "2021-09-25T11:39:35Z")

</div>

Like samme said, you can just put your input that transitions to sceneC in both sceneA and sceneB, and that should work alright.

You could also run a scene in parallel in the background to handle your scene-switching inputs, and use that scene to start and stop the other scenes, kind of like a ‘parent’ scene. If you use scene.launch(‘sceneName’) instead of scene.start(‘sceneName’), the scene that called scene.launch won’t automatically stop and the newly-launched scene will run in parallel with the first one.
