Available on: c128 c64 See also: HIT

HIT

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.

SYNTAX

 = HIT(#sprite)
 = HIT(var)


Legend
  • id : identifier
  • type : datatype
  • v : value
  • "..." : string
  • [...] : optional

EXAMPLE

 IF HIT( starship ) THEN
    POINT AT (100,100)
 ENDIF


Any problem?

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