Attack AI of ememies. Attack can't be stoped

What I want is that when the enemies get hit by the player or vfx sprite while they are attacking, they should stop the animation that is currently being played and start the underattack animation. same happens with the player\hero but I don’t know why it is not working with the enemies.

how many frames do you have on that animation?
the problem maybe is on the number of frames

if there are many frames, i suggest this one
Animation of ENEMY is playing > stop ENEMY animation
and your hero attacks

Stop ENEMY animation and restart its animation
you only get damaged when the ENEMY animation is finished

It’s not the best answer but maybe it will give you an idea… :smiley: