COLLISION( n, EDGE )
COLLISION( n, SPRITE)
Tests if a collision has occurred between sprite ‘n’ and the edge of the screen or another sprite depending on the form used. Returns:
&B0001 Indicating a collision to the left of the sprite
&B0010 Collision on the right
&B0100 Collision on the top
&B1000 Collision on the bottom
Note that it is possible for these results to be combined. For example; a result of &B0101 indicates that the sprite has collided with something both at the top and left of the sprite (for example the top left corner of the screen).
See also:
BLIT
CIRCLE
CLR$
COLOR
LINE
LOCATE
MM.HPOS
MM.HRES
MM.VPOS
MM.VRES
MODE
PIXEL
POS
PRESET
PRINT @
PSET
SCANLINE
SPRITE
Leave a Reply