hi guys,i 'm having trouble making enemies perform animations.
I would like the enemy to add a constant force towards the player and to play the attack animation when it is close to the player and to stop only when the player is hit by activating the flash.
what happens is that the enemy stops when the attacking boolean variable is activated not allowing collision with the player and that when it is asked to stop for the player’s flash this does not happen.
I know that the problem is related to the distribution of events but I’m having trouble managing them