• 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!

GameMaker how to check if variable is declared

Suzaku

Member
I have a global variable that needs to get the value of other variable, but first it needs to check if that other variable is areadly declared or if it has any value. How can I do this? Thank you.
 

Binsk

Member
Bad Dan1, bad. Don't give advice when you don't know what you're talking about. That won't work. Listen to cpaz.

That said, if you don't know if a variable is defined at some point in your code then you have bigger problems with your code's design.

Lastly, screw this mobile keyboard. Gracious.
 
Top