My local variable seems to be being reset for some reason.
Any ideas?
capx
Develop games in your browser. Powerful, performant & highly capable.
It's correct and expected behaviour that a local variable will reset to it's initial value each tick. If you need the value to persist you probably want to make the variable static. See the manual entry for variables.
Alternatively, you could make the variable a global, but that's not something you should do unless your design really calls for it.
Ah, thanks!
I just assumed that local vars were scoped at the group level. Changed it to static, an easy fix. <img src="smileys/smiley1.gif" border="0" align="middle" />