GameMaker Touhou Engine   Home   Downloads   Documentation

_DESTROY_IF_OUTSIDE_BOUNDS()


A script that destroys an object outside of the given rectangle.


Returns: Void


Syntax:


_DESTROY_IF_OUTSIDE_BOUNDS(ob, top, left, bottom, right)

Arguments:


Name Type Significance
ob Reference The object to potentially destroy.
top* Integer The upper Y-coordinate of the bounding rectangle.
left* Integer The left X-coordinate of the bounding rectangle.
bottom* Integer The lower Y-coordinate of the bounding rectangle.
right* Integer The right X-coordinate of the bounding rectangle.

*Can be set to noone for the script to ignore it.