I've been digging into the kit and really enjoying the pooling and the spawning thusfar. I've was looking for an option for there to be a 'maintained' amount of spawns per wave. Like let's say a wave is set for 2 minutes and I want 40 spawns maintained. So if I kill 5, 5 more will spawn in x amount of time to bring it back up to 40. When the timer reaches the end of its phase, whatever spawns are left stay and it moves to the next wave.
Please tell me there is something like this available or a way to make this happen.
Post by DarkTonic Dev on Jul 25, 2023 13:38:04 GMT
You may be able to do it with World Variables. Make it so you have a Variable named for example "EnemiesKilled" and whenever you kill an enemy, it adds one to the World Variable. Then, in your 2nd wave, you would set Min to Spawn and Max To Spawn to use that World Variable value.
The problem will come in the 3rd wave, when EnemiesKilled will be the total you killed in waves 1 and 2 instead of just 2. You can try using a LevelSettingsListener and adding code to WaveStarted to set that World Variable value to zero, and see if that fixes the problem.