Mouse Movement

by Woo
Move by holding right-click. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Woo.MouseMovement##version=6

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 2.1
Date added: Jul 16 2017
Last updated: Feb 28 2018
1 fan
Mouse Movement
A BYOND library
By Tyruswoo "Woo"


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.
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!

Visit to check out my other work in game design!

Tyruswoo Official Site

Join the Tyruswoo BYOND community!
Tyruswoo BYOND YouTube Tyruswoo BYOND Patreon
Tyruswoo BYOND Site Tyruswoo BYOND Discord Chat
Only you can build your dreams.