2D Enemy Script Rotate to look at player.
Hello, I am trying to have a 2D enemy sprite turn toward the player. However I want to do this gradually so that the player can actually outrun the enemy aiming. I was able to get a working code, however sometimes when I collide with the enemy its vector changes and the enemy would try to rotate its side toward the player until it collides then back to normal. I am curious how people solved this. Thank you.
Comment