Hi
So when I try attacking an enemy as the player, it sometimes causes the player to get stuck and then the enemy will teleport to the place that I first attacked at when I try attacking it again. I think its something to do with the knockback system and I just want to know what's causing it or if there's a better solution for the knockback
Thank you
Knockback for enemy:
Knockback for player:
The file:
https://drive.google.com/file/d/1lG7Uo8NrU_auxoe1mVzBhJOXLySU4rcH/view?usp=sharing
Develop games in your browser. Powerful, performant & highly capable.
You never set hit back to 0 on the skeleton so it starts movement from the previous variables. You should set hit back to 0 on the timer end or similar.
I just fixed that now and it works