This script worked ok with ver 7.6 but not with 7.77.2 would
any body have an idea what might have changed.

The door does not open at all, although the door sound is
working ok.

action key_door()

{

var init_pan;

init_pan = my.pan;

while (!player) {wait (1);} // make sure to add the "player = my;" line of code to your player action

while (!got_key) {wait (1);}

while (vec_dist (player.x, my.x) > 550) {wait (1);} // play with 100

snd_play (dooropens_wav, 100, 0);

while (my.pan > init_pan - 90) // rotate the door clockwise

{

c_rotate (me, vector(-4 * time_step, 0, 0), IGNORE_MAPS);

wait (1);

}

// use the loop below if you need to rotate the door counter-clockwise

// while (my.pan < init_pan + 90) // rotate the door clockwise

// {

// c_rotate (me, vector(4 * time_step, 0, 0), IGNORE_MAPS);

// wait (1);

// }

}