Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Moox on Sun 01/02/2004 20:34:12

Title: How do you make a gamewide switch?
Post by: Moox on Sun 01/02/2004 20:34:12
I want it so if you click an item in one room, every room changes
Title: Re:How do you make a gamewide switch?
Post by: Ishmael on Sun 01/02/2004 20:50:44
Setting a globalint with SetGlobalInt, and checking it's value in every room in the player enters screen (before fadein) with if (GetGlobalItn(...)...)
Title: Re:How do you make a gamewide switch?
Post by: Moox on Sun 01/02/2004 21:00:08
so i would set the int when clicked, and in every room check if its set.

That brings up a new question, how do i make it make an object visible if it is checked

so far i have this

 // script for room: Player enters screen (before fadein)
 if (GetGlobalItn(1)
Title: Re:How do you make a gamewide switch?
Post by: Moox on Sun 01/02/2004 21:20:08
I fixed it