Uses a bitwise mask to determine which sprites this sprite can collide with. Sprites are assigned categories using SetSpriteCategoryBits. There are 16 categories, each represented by a single bit in the "mask" parameter, a value of 1 for a bit represents that this sprite will collide with sprites from that category and 0 that it will not collide with that category, regardless of which category this sprite itself belongs to. By default all sprites belong to category 1 (0x0001 the rightmost bit) and collide with all categories (0xffff).
SetSpriteCollideBits( iSpriteIndex, mask )