Before proceeding, please use the forum search feature at the top of the page to check if your question has already been answered.
How do I…
In my game enemies move back and forth by using two hidden blocks. Once the enemy hits a block it turns the other way and walks until it hits the other block. Once the player comes into collision with the hidden enemy vision block the enemy, stops, shoots and then continues the walking pattern. How do I get it to where when the enemy is shot and is shooting at the same time the shooting animation is stopped and the hurt animation fully plays and then the enemy continues walking again if they arent dead?
What is the expected result
When the enemy is shot at the same time that the players bullet hits the enemy the enemy will stop the shooting animation and play the hurt animation, and then continue to do the walking pattern.
What is the actual result
When the enemy is hit by a bullet the same time they are doing the shooting animation the enemy freezes. It gets stuck in the hurt animation and does not do the walking pattern after that.