while(vec_dist(new_pos,my.x)>20){...vec_set(temp,vector(new_pos.x,new_pos.y,my.z));vec_sub(temp,my.x);vec_to_angle(new_pan.pan,temp);// new_pan.pan is the value holdermy.pan+=(new_pan.pan-my.pan)/20 //"20" is te slow down factor. set it to 1 and the player will turn towards the target immediately. ...}
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de