Game over menu doesn't work

I have a game over screen for when the player dies, but I’ve noticed that sometimes when you try and go to the main menu it takes you to the game scene instead.
What am I doing wrong?


Screenshot 2024-02-11 113637

There doesn’t appear to be anything wrong with those events. which make me wonder if maybe it’s an event on the main menu scene that’s making it jump straight to the game.

Could you screen snip the events of your main menu scene that start the game scene?

1 Like

Yes, you would be correct.
I fixed it a bit ago, turns out it would go to the main menu but because z was still being pressed it would start the game, I fixed it by putting a 3 second cooldown at the beginning of the main menu scene.

Or you could use key released (instead of key pressed) on the game over scene.

1 Like