GetSpriteInCircle

Description

Returns 1 if the sprite's collision shape is touching the given circle 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. Note that due to aspect ratio modifications this command does not behave as expect when using the percentage coordinate system. Instead it will check an ellipse with the correct radius in the X direction but a larger radius in the Y direction.

Definition

integer GetSpriteInCircle( iSprite, x1, y1, radius )

Parameters