Uniry wave with introduction

Hello.

I hope someone can help me.
I want a wave spawner but with introduction waves.
So i have like 6 enemies en 3 bosses and what i want is this order:
1
2
12
Boss1
12
3
4
34
Boss2
1234
5
6
56
Boss3
123456

And after this just random enemies.
What i think is that when you enter a collider the enemies spawn.
Bur i dont know how to do it in that order

Hope someone can help

It’s just the order you want help with? But you have written down the order?..
What did you try, so far?

What i habe now if when i enter a teigger there are spawning eandom enemies from the list.
But i down know how to spawn them in that order so fiest save 1 then wave 2 then wave 12
Each number represents an enemy

Does wave ‘12’ mean waves 1 + 2 ? anyways… back to the core here…
You have a list of enemies that, right now is spawning randomly… but you want to pick out the order yourself…
So, comment out the random choice, and start to put your own order in there (with breaks where/if appropriate; for instance, if you have to kill the boss first, I don’t know how you want it…)

Yes 12 means 1+2
Yes i can comment out the random.
But then if i toich the trigter how do i say that first only enemy 1 can spawn.
If that wave is cleared enemy 2 can spawn.
Id that wave is cleared enemy 1 and 2 can spawn.
I dont know how to define that

Well, one way would be to simply spawn a wave when you hit the trigger.

keep a list of what you want to spawn in order as you wrote in your first post.

keep a variable that says “CanSpawn” or something. This is set false when you spawn the first wave, and set true when you kill the wave. It will be a bit more work when you have more than 1 enemy that spawns.
This approach is very simplistic, and can always be improved, but maybe it can get you started.

Oh, still on the same note of being simple, but if you want it to continue automatically, then I guess you should check for the variable in Update or a CoRoutine, and when you’re allowed to spawn again, take the next enemy(group) in the list. :slight_smile: