Move by holding right-click. [More]
To download this library for your Linux/Mac installation, enter this on your command line:
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.
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!
Copyright © 2018 BYOND Software. All rights reserved.