@Mind-Brain Now I got it working, I had to do some tweaks I used print strings and everything was working. I changed the float to a vector and added the overshot distance 800 and 800 to X and Y. Also added an event dispatcher in the end of the code. I think the Float value was the problem, now it works in every angle if the enemy charges the player tested in many ways Thank you!
1 Like