Current state: If you press a button, the connected function is called in each frame for as long as the button is pressed.
Problem: No possibility to trigger an event just once a button is pressed. For example if you press the button to toggle the visibility of the Overlays, the visibility changes 60 times a second until the button is released.
Solution: Maybe checking for event "KEYDOWN" in landing_game_action_on_key like this?
Current state: If you press a button, the connected function is called in each frame for as long as the button is pressed. Problem: No possibility to trigger an event just once a button is pressed. For example if you press the button to toggle the visibility of the Overlays, the visibility changes 60 times a second until the button is released. Solution: Maybe checking for event "KEYDOWN" in landing_game_action_on_key like this?