How do I make an object follow the cursor

So I’m Planning to make a Custom cursor image as the cursor, the idea so far I’ve gotten is to hide the cursor and make the sprite follow the player.

The image below shows what I’ve done so far

The object doesn’t exactly follow the player, but instead it passes right through the cursor

Imagine you’re on the side of a sheet of ice, and no friction. You’ve got a puck that you shove in the direction of the middle of the sheet of ice. Once it gets to the middle, it won’t miraculously stop. It keeps going.

The same is what you’re doing with your sprite - you’re giving it a shove in a direction, and it will keep on moving, forever.

Instead, try updating the position of the sprite to MouseX() & MouseY() with no conditions. It’ll place the sprite at the mouse position. Like:

2 Likes