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 Value Significance
ob <object> The object to 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.


Actions:


Check if ob is outside the given rectangle. If so, destroy it.