action object() { set(my,INVISIBLE | PASSABLE); // optional while(!player) wait(1); //wait for valid pointer my.skill1 = 1; while(my.skill1) { if(vec_dist(my.x,player.x) < 64) { set(pnl_help,SHOW); if(key_a || key_b) { do sth my.skill1 = 0; reset(pnl_help,SHOW); } } else reset(pnl_help,SHOW); wait(1); } ptr_remove(me); }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de