# Pausing and continuing game not working

**URL:** <https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252>\
**Category:** Blueprint\
**Tags:** pause-game, unreal-engine, Blueprint, question\
**Created:** [June 6, 2019, 4:18pm UTC](https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252 "2019-06-06T16:18:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergeant\_Razer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sergeant\_Razer](https://forums.unrealengine.com/u/Sergeant_Razer)\
**Post date:** [June 6, 2019, 4:18pm UTC](https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252/1 "2019-06-06T16:18:36Z")

</div>

Hello guys, I got a little problem here. I want to pause my game by pressing the ESC key and then continue the game by pressing the same key again. Somehow it doesn’t work. Do you know a solution to this problem? That’s my code in the level blueprint:

 ![279013-open-close-pausemenu.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/f/f9fbc2a86bd92411e812c2c6527d1170483e6521.png)

---

<div class="post-metadata">

**Author:** ![Sergeant\_Razer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sergeant\_Razer](https://forums.unrealengine.com/u/Sergeant_Razer)\
**Post date:** [June 6, 2019, 4:22pm UTC](https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252/2 "2019-06-06T16:22:37Z")

</div>

By the way, pausing the game by pressing ESC key actually works fine, but if I press ESC again (when game is already paused and widget is shown) it doesn’t continue and also doesn’t close the widget.

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [June 6, 2019, 4:48pm UTC](https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252/3 "2019-06-06T16:48:25Z")

</div>

Look at your first branch. You will always get true with this., hence your game will never unpause

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [June 6, 2019, 5:07pm UTC](https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252/4 "2019-06-06T17:07:59Z")

</div>

Try setup like this and make sure you tick execute when paused.

 ![279014-pauseunpause.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/d/8ed1d6a52983d42d3a66f1123ef0874b4b1ef36a.png)

---

<div class="post-metadata">

**Author:** ![Sergeant\_Razer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sergeant\_Razer](https://forums.unrealengine.com/u/Sergeant_Razer)\
**Post date:** [June 6, 2019, 10:06pm UTC](https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252/5 "2019-06-06T22:06:07Z")

</div>

that actually works, but connecting A and B to the same node is no solution for my problem because I not simply want to toggle between paused and unpaused but also showing a widget (pause menu) and removing a widget. And that’s not possible with your solution, unfortunately

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [June 6, 2019, 10:28pm UTC](https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252/6 "2019-06-06T22:28:53Z")

</div>

There are many ways to do this really, just like everything in UE4. 🙂 Sorry I was a bit lazy and I found that on youtube quick time. Here is the one I use most of the time. You could use select or flip flop too, it’s all up to you.

 ![279042-mynewbiewidgettoggle.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/1/bc174de3294673843fc47c789984f25b7c65afa2.png)

---

<div class="post-metadata">

**Author:** ![Sergeant\_Razer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sergeant\_Razer](https://forums.unrealengine.com/u/Sergeant_Razer)\
**Post date:** [June 7, 2019, 2:42pm UTC](https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252/7 "2019-06-07T14:42:06Z")

</div>

is there also a way to do this with the same key? Like ESC?

---

<div class="post-metadata">

**Author:** ![Sergeant\_Razer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sergeant\_Razer](https://forums.unrealengine.com/u/Sergeant_Razer)\
**Post date:** [June 7, 2019, 2:49pm UTC](https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252/8 "2019-06-07T14:49:24Z")

</div>

okay, already fixed it, thanks!

---

<div class="post-metadata">

**Author:** ![Roblesliemedia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roblesliemedia/32/587970_2.png) [@Roblesliemedia](https://forums.unrealengine.com/u/Roblesliemedia)\
**Post date:** [December 21, 2022, 4:58am UTC](https://forums.unrealengine.com/t/pausing-and-continuing-game-not-working/450252/9 "2022-12-21T04:58:00Z")

</div>

That was EXACTLY the issue I was having. Thank you very much from the future over 3 years later. Not something I even thought of but know I am aware.
