Verify if a sprite has had a collision with a tile. The result
(0 = no collision, <> 0 = collision occurred) is returned as result.
Alias for COLLISION
.
= HIT(#sprite) = HIT(var)
IF HIT( starship ) THEN POINT AT (100,100) ENDIF
If you have found a problem with this keyword, if you think there is a bug or, more
simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!
open an issue
BACK TO KEYWORDS