Home
Free Midlets
Help

SPRITEHIT

Syntax: X% = SPRITEHIT (spriteName1, spriteName2)

The SPRITEHIT function returns 1 if the two sprites overlap or 0 if the two sprites do not overlap. This function doesn't test for collision on a pixel basis.

Example

HITFLAG% = SPRITEHIT("Ship", "Missile")