User Tools

Site Tools


ugbasic:user:collision
Translations of this page:


ugBASIC User Manual

COLLISION

SYNTAX

  • = COLLISION(# [integer] )
  • = COLLISION([expression])

PURPOSE

Verify if a sprite has had a collision with another sprite. The result (0 = no collision, 1 = collision occurred) is returned as result.

EXAMPLE

 = COLLISION(#1)
 = COLLISION(newValue+1)

AVAILABLE ON

  • Commodore 64

SEE ALSO

HIT