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

GML [SOLVED]Variable changes back to old value

I

IcyZ1ne

Guest
I have score variable(well the variable is actually named scr) which i want to add one point to itself when another variable(called fallen) is equal to true. The problem is that when the variable goes back to being false my score variable also goes back to its old value (aka zero). Why is that and how do I make it stay the way it is?
EDIT : I found out that the reason why the score reverted back is because instead of adding the variables in create event i have added them in the step event.
 
Last edited by a moderator:
Top