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

What is the equivalent of action_if_variable?

K

kwee

Guest
i need help what the code for
action_if_variable(chosen, false, 0);
in game maker studio 2
cause i just download engine and it say to use the code but when i use it it turn to a variable
 

TheouAegis

Member
action_if_variable(chosen,false,0) looks like it is just

if chosen == false {

action_* functions are built-in DnD stuff usually. So argument0 is the variable to check, argument1 is the value to compare it to, and argument2 is if the comparison mode. That's my guess.
 
Top