Table of Contents

ugBASIC User Manual

HIT

SYNTAX

PURPOSE

Verify if a sprite has had a collision with a tile. The result (0 = no collision, 1 = collision occurred) is returned as result.

EXAMPLE

 IF HIT( #1 ) THEN POINT AT (100,100): ENDIF
 IF HIT(startship) THEN HALT: ENDIF

AVAILABLE ON

SEE ALSO