Boundaries

by Lugia319
Some pixel functions
ID:1483233
 
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.