function test() { var SPEED = 1; //set the speed of turning in 'degrees per frame' ANGLE temp; while(holdIMAGE!=NULL){ vec_set(temp, holdIMAGE.x); vec_to_angle(temp, vec_sub(temp, camera.x)); vec_sub(temp, camera.pan); temp.pan = clamp(ang(temp.pan ), -SPEED, SPEED); vec_add(camera.pan, temp); wait(1); } }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de