Godot Version
4.6
Question
Hi
have found this topic on my search for the same question ![]()
Now i have made this one for me and anyone who needs it. But i don’t know where to post this. Hope it is ok right here to help some Godotneers.
and here some script:
if _angle > -112.5 && _angle <= -67.5:
to_top()
elif _angle > -67.5 && _angle <= -22.5:
to_top_right()
elif _angle > -22.5 && _angle <= 22.5:
to_right()
elif _angle > 22.5 && _angle <= 67.5:
to_bottom_right()
elif _angle > 67.5 && _angle <= 112.5:
to_bottom()
elif _angle > 112.5 && _angle <= 157.5:
to_bottom_left()
elif _angle > -157.5 && _angle <= -112.5:
to_top_left()
else:
to_left()
