extends KinematicBody2D
func _ready():
set_physics_process(true)
func _physics_process(delta):
var x = get_viewport().get_mouse_position().x
var y = get_viewport().get_mouse_position().y
set_position(Vector2(x,y))
My code for the object looks like that, but instead of being beneath the cursor it stands off like this:
(already tried global mouse pos, and I don't think it has to do with the object's speed)