hi
I fixed the pointer problem, and git it working.
that when when click on the button its snaps to the player
with this code.

function player1_click()
{

while(player1)
{

vec_set(camera.x,player.x); // set a static position for the camera
vec_set(camera.pan,player.pan); // set the correct orientation for the camera




wait(1);
}

}

but there is a problem, it snaps to the player and places the camera at its feet
and I need it to snap above with the camera looking down on the character.

cheers