Can someone please explain to me in a simple way, why I get different results when I use a local from a global variable? This is on two events that should in essence be the same!
Have a look at the attached capx.[attachment=0:27ffonrh][/attachment:27ffonrh]
When the starting value for both variables is 0, the local variable doesn't advance beyond 1 while the global variable advances as expected. Even more strangely, while the supposed X value for the Local Sprite advances by 32 on each click, the actual position remains the same, just like the local variable. It's hard for me to explain it in words but if you check the reported values on the Text's columns you'll see what I mean.
If the starting value is 1, the Local Sprite does move but this is just due to the fact that the local variable gets stuck to a value of 2 instead of 1.
This is a mess on something that should be really straight forward. What I'm I doing wrong, or what are my false expectations?