Create an object like a box or something. Move the box instead of the camera. Write in the main loop of the box's action something like:

Code:

vec_set(camera.x,my.x);
vec_set(camera.pan,my.pan);




Always learn from history, to be sure you make the same mistakes again...