|
Post by j0hnbane on Jul 25, 2023 4:24:06 GMT
Hey There,
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.
Thank you much!
|
|
|
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.
|
|
|
Post by j0hnbane on Jul 25, 2023 19:56:50 GMT
Thank you for the reply. I think I'm going to just use the Poolboss and write my own solution for spawning. I appreciate the swift reply!
|
|
|
Post by DarkTonic Dev on Jul 25, 2023 20:02:11 GMT
You can essentially modify the way things work if you tap into the Listener classes and modify things. Ok no problem.
|
|