I've a sort of problem with wait and a while loop
Code:
while(my)
{
my.x -= 3* time;
if (my.x < -3600)
{
my.y += 10*time_step;
if (my.tilt <= 15){
my.tilt += 5*time_step;
}
ent_create(bullet1,vector(my.x-20,my.y,my.z),move_bullet1);
wait(10);
}
wait (1);
}
This is a ship, it moves and when is .x is smaller than -3600 start fire and move towards y.
Cause of the wait the ship doesn't move quikly.
I've tryed to divide the while loop and create 2 different, but that's the same thing.
how to do?