Move by holding right-click. When the player holds the right mouse button, they will move towards the location of the right mouse press. When they let go of the right mouse button, they will no longer move.
If you want left click to do something, then see the example code using either the Click() proc or the MouseDown() proc.
v.2.0: Now movement is pixel specific, moving you as close as possible to exactly where you clicked. Thanks to Zagros5000 for the suggestion that led to this improvement.
v.2.1: When the client leaves, now the cursor object is deleted as well. Just a little cleanup to keep the code tidy.
If you have any suggestions for mouse movement features or improvements, please leave a comment in this library's discussion forum.
Terms: If you use one or more of my libraries in your game, please credit me (as Woo or Tyruswoo) and leave a link back to one of the following: my website, my BYOND site, my YouTube channel, or the webpage of the library you used. Optionally, you could also give me a free subscription to your game, if you like!