Hi guys!
So I want the sprite of my enemy to start and play a certain animation and to stop movement if my player sprite is near him! He stops his movement and actually stops at the first frame of the animation I want him to play.
That horned guy is enemy.. He is standing still as intended and stops at the first frame of the animation
Here is alle the code for that one enemy. I highlightet the part with the error
Does someone know whats wrong here?