Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Candle on Thu 08/03/2007 21:00:41

Title: Close/hide GUI[solved]
Post by: Candle on Thu 08/03/2007 21:00:41
I have a gui that will show a picture in the frame when an inv item is click( small picture) but I want to hide the gui when it is clicked. but when I try to add this in the onclick part it say blah about can't start with letter or something like that?
gMary.Visible = false;
What do you put in that to close or hide the gui again?
Or do you have to make a script and point it to a script that has that in it?
Title: Re: Close/hide GUI
Post by: SSH on Thu 08/03/2007 21:05:54
Yes, you have to put it in a script function. Enter the name in the script name section then double-click the gui to get AGS to automatically make and open a function for you.
Title: Re: Close/hide GUI
Post by: Candle on Thu 08/03/2007 21:10:17
Ok thanks SSH.

Work great.......... thanks again.