What is the best way to play an animation on a collision event?

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]

I figured out that it’s simple to create multiple named sequences within a spriteset and play different sequences when different events happen. [import]uid: 27901 topic_id: 6249 reply_id: 22962[/import]