I need to make a node point in the direction of the mouse, I searched here and none of the answers worked, and I’m sorry if this is very basic, I started using Godot literally 3 days ago.
The script:
extends Sprite2D
func _ready():
pass
func _process(delta):
apontar()
pass
func apontar() → void:
var pos = get_local_mouse_position () - position
look_at(pos)