• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

How to check if variable = to 1[SOLVED]

F

filipe

Guest
i have a variable called havekey if this var is set to 1 then i want it to destroy an instance
here is the code
Code:
//open
if havekey = 1;

with (obj_door)
{
instance_destroy();
}
 
F

filipe

Guest
Thank you i ended up having to change my variable to a global variable
 
Top