ENTITY* enemy; ENTITY* ship = NULL; ENTITY* pos1 = NULL; ENTITY* pos2 = NULL; ENTITY* pos3 = NULL; //etc.
function move() { c_setminmax(me); set(my,FLAG2); while (posa == NULL) wait(1); while(my.x > posa.x)///this crashes!! { c_move (my, vector(20 * time_step, 0, 0), nullvector, IGNORE_PASSABLE | IGNORE_FLAG2); // and the rest of your code.
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de