How can an advanced wave system be like?

Hello devs.
So I wonder how can an advanced or let’s say very good wave system is scripted, you tell me a good system how to achieve it and I will script it. I can’t really figure out a very good wave system with like each 10 rounds a boss spawn, each 5 rounds a mini boss spawns for example, not all zombies spawns directly and random type of zombies spawn.

Any help is very appreciated :handshake:

2 Likes

For the basics, keep track of the current round. Every time you want to handle a round, you can have a subroutine handling the boss/mini boss spawn conditions (whether the current round variable meets the condition of 5, 10 rounds respectively).

For periodic zombie spawning, you could store the number of zombies to be spawned per round and then repeat a spawning subroutine to spawn them at random intervals with random positions & types until the number of zombies spawned has reached the number needed for that round.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.