Mouse position isnt true as to the position of the mouse on the screen I need help

I’m using the sprite.pointTo(World.mousex, World.mouseY) to make my sprite look at the mouse but once I move just a little bit maybe 200 pixels at most the mouse cursor position is not the same as what is being used as world.mouse. When i move my sprite the mouse’s “position” will alter from the cursor on my computer gradually but this really affects the project I am working on and I really need help.
The picture below is what it looks like once I move my character. The debug is a sprite set to the cursors position with debug on.

Update! I have figured it out it was because i was rotating the sprite towards the world mouse when I should’ve been pointing it towards the cameras mouse.

1 Like

Glad you figured it out!