# I try to pause my game without using a new scene

**URL:** <https://phaser.discourse.group/t/i-try-to-pause-my-game-without-using-a-new-scene/9851>\
**Category:** Phaser 3\
**Created:** [June 26, 2021, 2:00pm UTC](https://phaser.discourse.group/t/i-try-to-pause-my-game-without-using-a-new-scene/9851 "2021-06-26T14:00:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FiveTony](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/fivetony/32/5265_2.png) [@FiveTony](https://phaser.discourse.group/u/FiveTony)\
**Post date:** [June 26, 2021, 2:00pm UTC](https://phaser.discourse.group/t/i-try-to-pause-my-game-without-using-a-new-scene/9851/1 "2021-06-26T14:00:21Z")

</div>

Hey! I try to pause my game without using a new scene: I have buttons “continue the game” and “restart”, but when I pause the scene and bring out the buttons - they are not clickable because the scene is paused. Please, tell me how you can get around this so that everything is in one scene?  
This is my code:

```javascript
 onPause() {
        this.ui.play.on('pointerdown', () => {
            this.addPause()
            this.scene.pause();
        })
    }
    addPause() {
        this.pause = this.add.sprite(x, y, 'pause').setInteractive()
        this.continue = this.add.sprite(x, y, 'btn1Pause').setInteractive()
        this.restart = this.add.sprite(x, y, 'btn2Pause').setInteractive()
        this.continue.on('pointerdown', () => {
            this.scene.resume()
        })
        this.pause.on('pointerdown', () => {
            this.scene.resume()
        })
        this.restart.on('pointerdown', () => {
            this.scene.restart()
        })
    }

```

 ![image](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/c/c013e67a8d2f4a1ee5bbffdb687ac8b045413bcd.jpeg)

---

<div class="post-metadata">

**Author:** ![Milton](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@Milton](https://phaser.discourse.group/u/Milton)\
**Post date:** [June 26, 2021, 2:16pm UTC](https://phaser.discourse.group/t/i-try-to-pause-my-game-without-using-a-new-scene/9851/2 "2021-06-26T14:16:52Z")

</div>

Maybe try [this](https://phaser.discourse.group/t/how-to-create-pause-resume-key/9513).
