action move_tank() { VECTOR speed; ANGLE rotAng; while(1) { rotAng.pan = 2 * (key_a - key_s) * time_step; c_rotate(my,rotAng,IGNORE_PASSABLE); speed.x = 10 * (key_w - key_s) * time_step; c_move(my,speed,nullvector,IGNORE_PASSABLE | GLIDE); wait(1); } }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de