action player_all ()
{
while(1)
{
camera_follow(me);
my.pan += (mouse_force.x)*-5*time_step;
var distance = (key_w-key_s)*11*time_step;
c_move(me, vector(distance,0,0), NULL, GLIDE);
var distance1 = (key_a-key_d)*11*time_step;
c_move(me, vector(0,distance1,0), NULL, GLIDE);
wait(1);
}
}
wehen i use
if (distance > 2)
{
media_loop("schritte.wav",NULL,100);
wait(1);
}
the walk speed slows down extreamly.....
what can i do?
(Yes I'm a beginner)