User Tools

Site Tools


ugbasic:user:kw:collision
Translations of this page:


ugBASIC User Manual

COLLISION

SYNTAX

   = COLLISION(#sprite)
   = COLLISION(expression)

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)
  x = COLLISION(newValue+1)

ABBREVIATION

 Col

AVAILABLE ON

  • Commodore 128 (MOS 8502)
  • Commodore 64

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY