I was a slient reader for several months and now I'm also finally in the position to ask a question for one of my game projects:
How do I run an action when closing the navigation screen? I can run actions when it opens with
Code: Select all
on "show"
Code: Select all
on "hide"
My goal is to set a specific variable once the navigation screen closes. The back textbutton works perfectly, as it allows actions, but I want to achieve the same when the player uses the hotkey as well.
Any ideas? Thanks in advance!
Edit: I was stupid. I didn't realize that I can add actions to the navigation screen on show but not on hide, because the navigation screen actual always show another screen out of the save, load, preferences etc. screens. So including actions on hide on these screens solved the issue.