AGS Support => Beginners' Technical Questions => Topic started by: chip on 22 Feb 2021, 20:39
Title: Change visibility of gui between rooms
Post by: chip on 22 Feb 2021, 20:39
Hello folks
with the tumbleweed template I try to hide the gui from the first room to make this my mainmenu, where I dont want the verbs and inventory to appear
When I use
Code: Adventure Game Studio
function game_start()
{
gMain.Visible= false;
}
in GlobalScript, it works and hides the gui, but as I process to room2 where the game "starts" I cant get the gui back to visible, how would I do that the best way? I try this code in the room2 script but it does not work:
Code: Adventure Game Studio
function room_FirstLoad()
{
gMain.Visible = true;
}
Title: Re: Change visibility of gui between rooms
Post by: Crimson Wizard on 22 Feb 2021, 20:51
First of all, make sure you did not forget to connect function to corresponding room event, this is the most common mistake everyone does.
If you press f1 AGS will load it's help, if you are in a recent version, then you should be able to find Tumbleweed when you search in it. In any case, the above is the more updated online help.
The original docs for it are here: https://github.com/dkrey/ags_tumbleweed/tree/master/doc