How to make the sprite always face and turn to the cursor

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By thatonevegetable

I’m brand new to Godot and I made my first KinematicBody2D for my 2D game, I also added the sprite picture for it and even coded it. Allowing it to move in direction whenever I press the arrow buttons.

It can move, but i also need the sprite to be able to spin and always face my cursor and I dont know how to do it. Sorry if my language is bad, it’s not my first language.

:bust_in_silhouette: Reply From: Cire_arievilo1

See this video

Easy Look At Mouse Script in Godot - Godot Quick Tips