action enemyki() { while(1) { if(vec_dist(my.x,player.x)<900) { //KI-code } wait(1); } }
action enemyki() { var ki_active = 0; var seconds = total_secs; while(1) { if(ki_active) { //KI-code } if(seconds == total_secs - 3) // if 3 Seconds are over { seconds = total_secs; if(vec_dist(my.x,player.x)<900) { ki_active = 1; } else { ki_active = 0; } } wait(1); } }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de