1) I'd like the player to be able to close menu if he clicks anywhere, except on a menu button.
So:
-> if player clicks on a menu button -> he activates it
-> if player clicks somewhere else -> menu closes
What can I use?
2) Other thing, I'd like the player to be able to click "esc" to exit any menu.
-> click "esc" -> menu.TurnOff (for all menus)
How can I get the "esc" click?
Thank you very much!
Comments
2) When any such menu is on, call a looping ActionList that uses the Input: Check Action. Set it to Run In Background, and check for "Escape" (this must be a defined Input axis). If the Action returns True, use Menu: Change state Actions to turn off all the Menus. If false, just loop it back on itself (easier to do within the ActionList Editor window).