My characters hit like this:
<img src="http://s23.postimg.org/6rs98ikyz/Screenshot_11.png" border="0" />
After the attack buttn is pressed:
1. They get ready for 0.05 seconds.
2. They hit for 0.1 seconds
3. They recover their bearings for 0.2 seconds.
They are supposed to be vulnerable for the time they are getting ready and the time they are recovering.
The idea I?m trying to do is that if they are hit while they are "getting ready" (that 0.05 seconds), they can?t hit (the enemy?s hit cancels theirs).
My question is, how can I cancel the attack sequence so that the player hit is canceled (and replaced with a "being hit" animation)?
Thanks