・Be sure to call before using SPHIT command.
・Error when used before SPSET.
・If start point X and start point Y are not specified in SPCOL, then the information of SPHOME is used as start point X and start point Y. Even if SPHOME is changed afterwards, start point X and start point Y are not followed.
Target sprite number: 0 to 4095
When 1 is specified, the size of the collision detection changes according to the scale change in SPSCALE or SPANIM.
If 0 is specified, the size of collision detection will not change even if the scale is changed.
・0, if not specified.
SPCOL 3,1
・Be sure to call before using SPHIT command.
・Error when used before SPSET.
・If start point X and start point Y are not specified in SPCOL, then the information of SPHOME is used as start point X and start point Y. Even if SPHOME is changed afterwards, start point X and start point Y are not followed.
Target sprite number: 0 to 4095
When 1 is specified, the size of the collision detection changes according to the scale change in SPSCALE or SPANIM.
If 0 is specified, the size of collision detection will not change even if the scale is changed.
・0, if not specified.
0 to &HFFFFFFFF(32bit)
・When the collision is detected, compare each other's bit of AND and if it is 0, it is regarded as not colliding.
・If not specifiied, it's &HFFFFFFFF.
SPCOL 3,1,31 SPCOL 3,,31
・Be sure to call before using SPHIT commands.
・Error when used before SPSET.
・When the starting point X and Y are specified in SPCOL, the information of SPHOME is not used at all.
Target sprite number: 0 to 4095
・Start point coordinates of detection area: X, Y (-32768 to 32767).
・Relative coordinates with the top left of the sprite as the origin (0,0).
Detection area width and height: W, H (1 to 65535)
When 1 is specified, the size of the collision detection changes according to the scale change in SPSCALE or SPANIM.
If 0 is specified, the size of collision detection will not change even if the scale is changed.
・0, if not specified.
0 to &HFFFFFFFF(32bit)
・When the collision is detected, compare each other's bit of AND and if it is 0, it is regarded as not colliding.
・If not specifiied, it's &HFFFFFFFF.
SPCOL 3,0,0,32,32,1,255 SPCOL 3,0,0,32,32,,255
・Error when used before SPSET.
Target sprite number: 0 to 4095
Scale support flag set in sprite
Collision mask value set for sprite
SPCOL 3 OUT SC,MSK
・Error when used before SPSET.
Target sprite number: 0 to 4095
Collision detection area start point coordinates
Collision detection area width and height
Scale support flag set in sprite
Collision detection mask value
SPCOL 3 OUT X,Y,W,H,SC,MSK