//collision groups #define ALLY_GROUP 1 #define ENEMY_GROUP 2 #define NATURE_GROUP 3 #define ITEM_GROUP 4 .... action squirrel() { my.group = NATURE_GROUP; ... } function convert_squirrels() { c_ignore(ALLY_GROUP, ITEM_GROUP, 0); //only enemies or nature if (c_trace(..., ..., ...) > 0) { if (you) you.group = ALLY_GROUP; } }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de