{{htmlmetatags>metatag-robots=() metatag-title=(COLLISION | ugBASIC User Manual) metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum) metatag-description=(Manual page for COLLISION) metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png) metatag-og:title=(COLLISION | ugBASIC User Manual) metatag-og:description=(Manual page for COLLISION) }} ====== ugBASIC User Manual ====== ===== COLLISION ===== ===== SYNTAX ===== = COLLISION(sprite) ==== PURPOSE ==== Verify if a sprite has had a collision with another sprite. If the sprite has collided, the function will return TRUE. Otherwise, it will return FALSE. ==== EXAMPLE ==== x = COLLISION(1) ==== ABBREVIATION ==== Col ==== AVAILABLE ON ==== * Commodore 128 (MOS 8502) * Commodore 64 ==== ALIAS FOR ==== [[HIT]] ==== 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 COLLISION|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY ===== [[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]