BOXCOLL

Syntax:

BOXCOLL col##, xa#, ya#, sxa#, sya#, xb#, yb#, sxb#, syb#

Checks if the rectangle with the corner xa#, ya# and the size sxa#, sya# is collisioning with the rectange with the corner xb#, yb# and the size sxb#, syb#. If so, col## will be 1, otherwise 0.

Sample:

start:
MOUSESTATE mx, my, ba, bb
PRINT “X”, 100, 100
PRINT “H”, mx, my
BOXCOLL col, mx, my, 16, 16, 100, 100, 16, 16
IF col=1
    PRINT “!!!”, 100, 150
ENDIF
GOTO start