Boundaries

by Lugia319
Some pixel functions [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Lugia319.Boundaries##version=2

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

byond://Lugia319.Boundaries##version=2

104 downloads
Version 1.01
Date added: Jan 27 2014
Last updated: Feb 2 2014
4 fans
This library gives you 2 functions that are useful for visual effects in pixel movement games.

BoundAlign - this function will align a reference object to a target object by bounding box. Extra parameters may be used to change the reference point.

GenerateBounds - I use this one for spell/attack effects. It returns a list of bounds that can be used when checking for targets getting hit.

Update: I've discovered that bounds for both objects must be defined (I'm guessing that default of 0 doesn't mean default of 0?). I've added this note to the lib because no one ever reads this anyway. Hopefully they'll read the notes.