Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: kantor_98 on Thu 05/01/2006 12:42:13

Title: Local variables
Post by: kantor_98 on Thu 05/01/2006 12:42:13
I modify a local variable in a screen.Then I get out. When I get in again in the first screen (in which I modified the local variable) I find out that the local var has the modified value and not the initial value (the value with which this var was initialised). It was only an accident or I can usually work with this ?
My intention is not to use the local variable in other screen, but to keep in mind the status of some objects while I go to other screens.
Title: Re: Local variables
Post by: Ashen on Thu 05/01/2006 12:47:01
If I understand the question correctly:
Local (room-specific) variables store their values when you leave the room. So, unless you have something in one of the Player enters screen interactions that resets the value, you can indeed use local variables to store the status of objects, etc, while you're in another room.