This is a noob question but how do I move the center of a sprite to my mouse, currently I am using
position = get_viewport().get_mouse_position();
but this aligns the mouse to the top left of the sprite, and if I change the pivot point to the center of the sprite, the sprite then goes even further right and below where the mouse is. I know that I could easily just manually add to the x y values to get the result I want but I still want to know why this is happening to make things easier in the future.