Main sections
SPRCOLL()
col%=SPRCOLL(id1%, x1%, y1%, id2%, x2%, y2%)
This does a pixel based collision detection test between the sprites with ID id1 and id2. This command does an internal BOXCOLL check for speed reasons before checking if any pixels from the two sprites overlap. As a result, there is no need to run a BOXCOLL manually prior to this command.
The result will be 1 if any pixels from the two sprites overlap, 0 if they do not.
Sample:
// SPRCOLL DEMO
LOADBMP "test.bmp"
LOADSPRITE "Bubble.bmp", 0 // LOADSPRITE $name, #num
LOADSPRITE "Block.bmp", 1
WHILE TRUE
MOUSESTATE mx, my, b1 ,b2
DRAWSPRITE 0, mx, my, 0
DRAWSPRITE 1, 100, 150, 0
IF SPRCOLL (0, mx, my, 1, 100, 150)
PRINT "Wahoooo", 100, 100
ENDIF
SHOWSCREEN
WEND