I have an animated sprite floating around in my game happily looping a 4 frame sequence of movements. When something hits it, I want to play a different animation once, then go back to the previous loop. What’s the best way to do that?
I’ve considered doing this at collision time:
-remove the existing sprite
-create another at its same location that’s configured to play the collision animation
-when the collision animation is done, remove that sprite and recreate the old one.
That all seems rather convoluted. I’m curious if there’s an easier way to tell the existing spite to play a “special” animation at some particular time. [import]uid: 27901 topic_id: 6249 reply_id: 306249[/import]