Did you move the wait(1); instruction inside of the braces like Jibb said? It should look like this:
Code:
action car()
{
car1 = me;
while (1)
{
if (key_a)
my.pan -= 3 * time_step;
if (key_d)
my.pan += 3 * time_step;
if (key_w)
c_move(car1,vector(5 * time_step,0,0),nullvector,GLIDE);
if (key_s)
c_move(car1,vector(5 * time_step,0,0),nullvector,GLIDE);
wait (1);
}
}
If the car still won't move after doing this, make sure the car is not stuck in the floor. Also, make sure to compile your level again after you assign the action to the car.