AGK for Pascal
TAgkSprite.CollideBits Property

Uses a bitwise mask to determine which sprites this sprite can collide with.

property CollideBits: Cardinal;

Sprites are assigned categories using CategoryBits. There are 16 categories, each represented by a single bit in the CollideBits property. 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 ($0001 the rightmost bit) and collide with all categories ($FFFF).

Copyright (c) 2012. All rights reserved.