while(1) { if ( my.status == 1) { c_move (my, vector(10, 0, 0), NULL, GLIDE); run_percentage += 6 * time_step; wait(1); } wait(1); }
while(1) { if ( my.status == 1 && vec_dist(my.x,target_pos.x)>= 10)//Where 10 is the distance you want instructions to be executed { c_move (my, vector(10, 0, 0), NULL, GLIDE); run_percentage += 6 * time_step; wait(1); } wait(1); }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de