Table of Contents

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

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