I am working on a RPG stup, an load of stuff in a .FLA that will be able to be set up into a RPG. I put this on the main character, trying to get it to affect a stanima bar. as he stands still, it goes up, while going down as he walks. if its at the bottom, the main can't walk.
_root.energy.stanima refers to the stanima of the guy. This is presented in a bar.
allow_move becomes 0 when stanima's at the bottom, and becomes 1 half way, so if it goes to the bottom, you have to wait for half the stanima.
but it moans about this:
**Error** Scene=Scene 1, layer=top pieces, frame=1:Line 2: Statement must appear within on/onClipEvent handler
if(allow_move = 1)
help?