Is there a way to move the cursor smoothly?

Hi! I hope you are well! I want to know if it is possible to move the cursor from point A to point B smoothly. For example, if you do this:

XMove 0, 0

and then this:

XMove 920, 540

The cursor will move from the top left corner to the middle of the screen teleporting. So I was wondering if there’s a way or function to move the mouse from point A to point B like a human would do. Thanks in advance!