If a player goes to any one of the other screens and then closes the menu from there, I would like to be change _game_menu_screen to the last screen they accessed. For example, if someone goes to bar, and then closes out of the in-game menu, the next time they press X, I would like to open bar instead of foo.
Doing this:
Code: Select all
screen foo():
on "show" action SetVariable("_game_menu_screen", "foo")
text "[_game_menu_screen]"
The difficulty is that the in-game menu is a different context than the game itself, right? I don't really understand contexts, call stacks, or store variables. I am hack-and-slashing my way through OOP tbh. pls help tho I'm out of ideas :[