This one I wrote is small , simple , easy to be edited
Code:
function smooth_camera()
{
var position_y;
var position_x;
position_x = camera.x;
position_y = camera.y;
camera.x +=((player.x - position_x)/10)-20;
camera.y += ((player.y - position_y)/10);
camera.z=player.z+140;
vec_set(temp,player.x);
vec_sub(temp,camera.x);
vec_to_angle(camera.pan,temp);
}