Mastering control of animation frames!
Alright this is a quick one - how can I stop a framecount from increasing once it reaches a certain frame? I've tried (at work so I can't verify, but something like this)
Code:
if self.frame = 12
self.frame
But it doesn't seem to do anything that I can see. I've read elsewhere that lua can't modify SpriteAnimMode so I can't just set it to 0 or something. I suppose I could start with SpriteAnimMode at 0 and animate it entirely by lua, but it seems to me that there
must be a simple way to just stop it once its reached a certain point.