I’m hacking my way through the Corona SDK and really enjoying myself. Could someone offer some advice on managing sprite animations and rotating through different animations while waiting for an existing animation to finish?
I know there are event states you can watch for but I haven’t seen an example of anyone else doing something similiar with an animated sprite. I’m sure I’m just missing something 
I have a sprite playing an idle animation and I then want to play an attack animation, when it is finished I want it to play a hurt animation on the second character and the 1st character go back to an idle animation. When the hurt animation is finished I want character 2 to go back to idle, etc.
Does someone have a chunk of code to manage sprite animation states like that?