Im having trouble making the camera move with the entity.Ive tried using the one displayed in the lite-c manual,and it works but the camera is placed at the charecters feet.This is the code ive tried using:

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

Is there a better way of doing this? Thx in advance.