{{htmlmetatags>metatag-robots=()
metatag-title=(HIT | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(Manual page for HIT)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=(HIT | ugBASIC User Manual)
metatag-og:description=(Manual page for HIT)
}}
====== ugBASIC User Manual ======
===== HIT =====
===== SYNTAX =====
= HIT(#sprite)
= HIT(var)
==== PURPOSE ====
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''.
==== EXAMPLE ====
IF HIT( starship ) THEN
POINT AT (100,100)
ENDIF
==== AVAILABLE ON ====
* Commodore 128 (MOS 8502)
* Commodore 64
==== ALIAS FOR ====
[[COLLISION]]
==== ANY PROBLEM? ====
If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON HIT|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY =====
[[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]