how to make sprite stay right next to mouse

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jujumumu

In _procces(delta) I am making the sprite go right next to the cursor but if you move the cursor extremely fast it will not keep up and drag behind? What can I do to make it perfect?

:bust_in_silhouette: Reply From: Dlean Jeans

Use _physics_process.

What do you mean and why?

jujumumu | 2019-08-01 17:26