Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Derrick Freeland on Fri 13/01/2012 13:30:11

Title: Hide GUI in one room SOLVED
Post by: Derrick Freeland on Fri 13/01/2012 13:30:11
I set up my start menu as a room with objects for character selection and so on.  The GUI that I made for the game is visible in all of my rooms, but I'd like to hide it in the start menu room.  How do I do that?
Title: Re: Hide GUI in one room
Post by: on Fri 13/01/2012 18:15:28
You can do that by using THE_GUI.Visible = false / THE_GUI.Visible = true. (Enter the name of your GUI instead of "THE_GUI").

So if you just want to have the GUI invisible in one room, open that room's even page and create an event for "Enter Room before fade-in".

Then enter the following line into the newly created event:

function room_Load()  <-this is the event!
{
  THE_GUI.Visible = false;
}

Title: Re: Hide GUI in one room
Post by: Derrick Freeland on Fri 13/01/2012 20:25:12
That totally worked! Thanks for the help. ;D