do this:
my.pos=player.pos;
my.x+=sin(player.pan+90)*200;
my.y+=sin(player.pan)*200;