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