GetSpriteInBox

Description

Returns 1 if the sprite's collision shape is touching the given box in world coordinates, 0 if not. If the sprite does not have a shape it is assigned a box shape of its own which will remain after this command. This command takes into account the rotation and scale of the sprite when checking intersection.

Definition

integer GetSpriteInBox( iSprite, x1, y1, x2, y2 )

Parameters