[Solved] The action "Stop and go back to previous scene" is glitching

The action “Stop and go back to previous scene” is glitching.

I made another scene for the “Store” for the player to spend the coins he collects during the game, so I click the store button and it pauses the current game scene and opens the shop scene.

After I buy something at the store, I click on “Back” and the game scene screen flashes and the store opens again. After I click another time, it goes back to the previous scene as it is supposed to.

Can you guys help me?

Are the Store and Back buttons in the same screen position? If not, can you share screenshots showing their actions in both scenes?

If you’re checking for mouse clicks with “mouse down,” try using the button state extension with the “Clicked” condition on each button instead.

First of all, thank you for your response!

I already changed the position of the Back button and I get the same behavior.

I also tried using the button state extension with the Clicked condition.

Let me share some screenshots:
Captura de tela 2024-12-16 210643

Captura de tela 2024-12-16 210728

And what happens if you change the condition to coinShop is clicked? I’m just wondering if the pressed state is maintained for extra game frames for some reason.

You solved my problem, man.

Thank you very much!

1 Like