Okay,
so one of my GUI's is a "Pause" menu, effectively pausing
the game.
I've already scripted all the pause/unpause stuff,
that isn't a problem.
Now, i want the GUI to have options like Quit,
cancel, confirm etc.
So.
How will I be able to make 1 - the GUI come up when the 'esc' key (keycode 29-already scripted, don't worry about that),
and 2 - the GUI close when the player clicks
on "Cancel".
Appreciated,
-Fluke.
Quote(keycode 29-already scripted, don't worry about that)
According to the manual (http://www.adventuregamestudio.co.uk/manual/ASCIIcodes.htm), 27 is the code for escape. Does changing that solve the problem? If not, what exactly do you need (what is/isn't it doing)? (I assume you've found the GUI.Visible (http://www.adventuregamestudio.co.uk/manual/GUI.Visible.htm) property.)
You shouldn't really need to script the "pause/unpause stuff" - using a popup modal GUI should pause automatically.