I have a multi frame animation using a spritesheet. When the animation stops I would like to reference the current frame by a name. Lets just call it “Frame A”, “Frame B”, and “Frame C”
Now I could just look at sprite.currentFrame and because I created the animation I know which .currentFrame number is “Frame A”.
However I am in a situation where the animation has many “Frame A”, “Frame B”, and “Frame C” all mixed in a crazy order.
Without having to write my code to check if sprite.currentFrame == 1 or 3 or 8 or 15 or 16 or 19…
I would like to say if sprite.currentFrame.tag == “Frame A”
Does anyone here see a way I could accomplish this?
Thanks! [import]uid: 9187 topic_id: 3716 reply_id: 303716[/import]