I'm having a little trouble getting something to work and a bit confused as to why it won't work.
The basic logic I want to occur is when you hit the enemy first time it plays it's hit animation. If it get's hit a second time it plays it's death animation and the objects are destroyed.
What I originally tried was to include the 'on animation finished' command in the for each loop but this gave an error during testing (error at bottom). So I moved the 'on animation finished' commands outside of the for each loop but this now means it affects all the enemies and not just the unique UID enemy.
Screenshot of the enemy code below. Any ideas what I am doing wrong, what should I use instead of the 'on animation finished' command (I need to wait for the animation to finish otherwise the other condition becomes true and it dies straight away)
<img src="https://dl.dropbox.com/u/3796932/enemy_loop.jpg" border="0" />
<img src="https://dl.dropbox.com/u/3796932/enemy_loop_error.jpg" border="0" />