Hello! I am making a top-down combat game, (very early stages), and I was wondering how I could push back the enemies when I hit them. I have when you left click it spawns a swing animation, and if it hits a zombie it damages it and stops it from following you. What I want it to do is push back away from the direction i'm hitting it, so combat can be a bit more smoother. Tell me if I missed anything, thanks!
Here is the link to the game so far, please don't judge the art, it's not final and I made it in like 5 minutes. :P