Godot Version
4.5.1
Question
Hello everyone,
My main scene setup is a Node2D that contains the game area, and under it is a CanvasLayer with the GUI. One of the GUI components is the game’s help screen which can be brought up from within the game (without going to the main menu). This help screen is an instance of a scene, hidden until called for.
I use the Escape key to get out of GUI screens, but also to go to the main menu from the game screen. My problem is this:
- Play in the main game screen.
- Click the button to show the help screen.
- Click Escape to return to the game.
- Both help screen and the game react to the Escape key, and the game switches to the main menu instead of returning to the game.
I can’t seem to find a way to react to the Escape key only in the help screen when it’s shown. Played around with the focus properties and others but no dice.
Thank you for any help!