Pause menu background with animation

How can I fix the animation of my pause menu animation background? I already have program on my pause menu. The problem is when I click ESC (button selected to be pressed to create the pause menu) the pause menu showed up then the animation work at once even tho the loop is already checked and another problem is the sprite showed simultaneously not one at the time.

Here’s what happened when I pressed ESC

And this is my program

The events bellow the “Escape” Key is pressed, should be sub events, another way is to give them “Trigger once”.

I think whats happening is that when you press “Escape” and the variable goes to 1, for as long as its 1, its constantly creating the “Pause” object, every single frame, because it has nothing to tell it to only do it once.

Thats why the weird effect :slight_smile:

Thanks dude! It’s working

1 Like