- Edited
Basically, I want to disable all inputs for a brief moment, so the player is not able to open menus multiple times.
I have an inventory that plays a fade in animation when opening, and then, when it's fully open, a boolean is set to true. After that, when the inventory is closing, it plays a fade out animation and the boolean is set to false.
The issue is that if the player presses the inventory key while the inventory fade in animation is playing, the game plays the animation again, so I want to stop all input while those things happen.
I tried using get_tree().get_root().set_disable_input(true)
, but it doesn't seem to work. It changes to true and false correctly, but it doesn't seem to affect the input in any way