write the exact algorithm you want, i'll see if i can provide the code

e.g
Code:
while(player_exists){

   if key_s
      camera look at player

      if player moves passed camera
         wait 1/2 second
         move camera to new spot behind player
         camera look at player
   wait(1);
}