while (my)
{
vec_to_angle (my.pan,mouse_pos3d);
my.tilt = 0;
//-----------Movement-----------
camera.x = my.x;
camera.y = my.y;
if (key_w)
c_move (me, nullvector, vector(20*time_step, 0, 0), IGNORE_PASSABLE); // move the player forward
if (key_s)
c_move (me, nullvector, vector(-20*time_step, 0, 0), IGNORE_PASSABLE); // move the player forward
wait(1);
}