Hmmm I've tried that already but it didn't work. I'll just tell you whats happening in the code, if that helps at all.
First off, that counter thing you helped me with a little while ago is working. I'm making the fastloop "Wave" run "the value of that counter" times. Then on loop "Wave"+every 1.5 seconds create zombie at spawn point. Once all zombies are dead and the loop is still "Wave" add one ot gloal value A (which makes that counter go up 1) Then I want "Wave" to run twice this time, bacuse its on the next wave of zombies. But it only spawns one zombie from each spawn point and it goes on and on the same way. Thanks for replying so quickly btw
The problem is most likely that your loop finishes before the timer has a chance to get 1.5 seconds further! I think this might be a case where you don't want to use fastloops.
Try this instead:
Set some value "wave" to global value A.
Every 1.5 seconds AND "Wave" is greater than 0: Create zombie + Subtract 1 from "Wave."
I have these objects:
(Spawner) Active (Used for spawning, alterable values and stuff) this is not seen in the playfield
(Enemy) Active
When a new wave is spawned, set flag 0 of (Spawner) to be on
if flag 0 of (Spawner) is on:
}add 1 to alterable value A
if alterable value A == 25 (means that enemies spawn every ½ second, 50 for a second etc. if your frame rate is 50):
}create (Enemy)
}set alterable value A to 0
}add 1 to alterable value B
if alterable value B == some value determining how many enemies per wave (ex. 5)
}set alterable value B to 0
}set flag 0 to off