Hi there, I am still dealing with this problem lol....
I have a boss I want to aim at the player... follows him around etc... I have the same rotation reset where in a point it goes all the way the other way instead of +1 to the side...
here my code: the 1.57 is a correction coz my player sprite is rotated
var player = stage.get_node("Player")
var aim_dir = (player.position - self.position).angle() - 1.57
var current = self.rotation