You may place the camera in a certain distance
away from your entity, when you move the entity,
move the camera also and keep it always look at
your entity.
Code:
action yourEntity
{
while(1)
{
// entity move code
//.....
// Place the camera in a certain distance
// away from the entity
camera.x = my.x + 15; // play with 15
camera.y = my.y + 15; // play with 15
camera.z = my.z + 2; // play with 2
// Always look at the entity
vec_diff(temp,my.x,camera.x);
vec_to_angle(camera.pan,temp);
wait(1);
}
}