I have a platformer game and I'm currently working on the player's melee combat with a sword.
Currently I'm working on the enemies. This is the code for the enemy when it gets hit:
ouched = true
vel = Vector2(0, 0)
I noticed that the problem was that it doesn't play the "Ouched" animation, despite of me adding the onAnimatedSpriteanimationfinished() signal:
ouched = false
How do I fix this?