Sub-Pixel Movement

by Kaiochao
Includes a proc to move by any pixel offset (decimals too). [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Kaiochao.SubPixelMovement##version=0

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


Latest Version
Date added: Jun 23 2017
Last updated: Dec 31 2018
1 fan
Move by sub-pixel values (floating point) along the x and y axes.

BYOND automatically rounds positional coordinates to whole numbers, which kills precision and accuracy for things moving slowly and/or along slightly off-axis angles over time, such as projectiles.

This is taken from my Absolute Positions library as a standalone module, because you may not need the entire library. See Pixel Positions for the other part.