Knocked back Character only gets thrown into one direction.
Hello, I managed to add a knockback, after I watched a Video on Youtube about a simple knockback. I changed some small things, so that the character gets knocked back by the projectile and I changed that he can also can get knocked to the left or right, instead only up and down, but now every time he gets hit by a projectile he gets thrown back with an insane velocity, always in the same direction on my Map, in the down left corner (-x,-y). If I'm standing near to him in that corner and hit him with a projectile the velocity with that he gets pushed back is way slower. The Character is an AI which follows me.
My Goal is that if he gets hit on on one side with the bullet he gets pushed to the other side.
What am I doing wrong? Help me.
Hoping for answers, Tenyoru
Follow this question
Once you sign in you will be able to subscribe for any updates here