Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 31/08/2005 19:50:48

Title: help needed with GUI for quit game thingy
Post by: on Wed 31/08/2005 19:50:48
I am making my first AGS game and have been using the getting started with AGS tutorial. I recently started making a quit GUI, as described in the last part.
However, steps 5 and 6 are for an older version of AGS than I have got. I tried to do it anyway, but got 2 problems-
1. I cant get the script to turn off the GUI after the player presses play.
and
2. I cant get the GUI to appear.

can u help me?
Title: Re: help needed with GUI for quit game thingy
Post by: strazer on Wed 31/08/2005 23:18:04
(The tutorial mentioned is here (http://www.adventuregamestudio.co.uk/actutgui1.htm).)

In AGS v2.7 each GUI button can have its own event function, so you don't have to put everything into the interface_click function.

Just double-click the button to edit the button's script (you may have to give the button a name first) and enter
gYourguiname.Visible = false;
to turn the GUI off and
gYourguiname.Visible = true;
for the other button to turn the GUI on.
Title: Re: help needed with GUI for quit game thingy
Post by: on Thu 01/09/2005 15:29:56
Thanks ;D