Pixel Movement

by Kaiochao
Helpers for pixel movement. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Kaiochao.PixelMovement##version=4

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

byond://Kaiochao.PixelMovement##version=4

156 downloads
Version 4
Date added: Aug 10 2016
Last updated: Jul 27
0 fans
Helpers for pixel movement:
atom/movable
proc
PixelMove(move_x, move_y)
PixelMove(vector2/move)

PixelSlide(move_x, move_y)
PixelSlide(vector2/move)

PixelMoveTo(center_x, center_y)
PixelMoveTo(vector2/center)
PixelMoveTo(atom/center)

PixelSlideTo(center_x, center_y)
PixelSlideTo(vector2/center)
PixelSlideTo(atom/center)

SetLowerTo(lower_x, lower_y, z)
SetLowerTo(vector2/lower, z)
SetLowerTo(atom/lower)

SetCenterTo(center_x, center_y, z)
SetCenterTo(vector2/center, z)
SetCenterTo(atom/center)


7/27/2019
Added PixelSlideTo.
Updated documentation.

Comments

Kaiochao: (May 21, 11:39 am)
This is a library containing some functions that make the native pixel movement in BYOND easier to work with. Along with the Pixel Positions library to get world pixel positions of atoms, you can use this library to set world pixel positions of atoms and move them around by pixels.

There should be a decent explanation of everything inside the code file.
Phennexion: (May 21, 9:12 am)
I've added the library to my game, but how do I make this work?