A BYOND library
By Tyruswoo "Woo"
Includes:
mouse.dm
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.
Update notes:
- 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.
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!
Join the Tyruswoo BYOND community!