jerydarkside
Guest
Posts: 0
|
Post by jerydarkside on Mar 30, 2015 22:49:37 GMT
Hi!
I saw all video tutorials, but I don't manage to implement a specific pattern.
I would like to do that: During 60 seconds: At first, spawn 3 zombies. During these 60 seconds, every time I kill (despawn) a zombie, 2 more appear.
I know I have to use a timed wave, but I don't know what to do next. "Repeat wave with spawn increase" doesn't help, because it waits that every zombies are killed before spawning the others.
Could you help me?
Sincerely,
Jery
|
|
|
Post by DarkTonic Dev on Mar 30, 2015 23:45:39 GMT
For this part: "every time I kill a zombie, 2 more appear", you would use the Killable script on the zombie. For Death prefab, make it spawn 2 zombies. Basically that part has nothing to do with the spawner any more.
|
|
jerydarkside
Guest
Posts: 0
|
Post by jerydarkside on Apr 1, 2015 21:13:10 GMT
Hi! Thank you for your answer. Your answer works very well. However, I wanted to benefit from my spawner settings about Randomization. I managed to do that programatically:
When a zombie dies, I get my only spawner in the scene, and I make 2 zombies spawn from this spawner. The code is very easy:
//Inside zombie death method WaveSyncroPrefabSpawner spawner = LevelSettings.SyncroSpawners[0]; spawner.SpawnOneItem(); spawner.SpawnOneItem();
This code works with my current settings, but I don't know how well this can be adapted for multiple spawners.
Jery
|
|
|
Post by DarkTonic Dev on Apr 1, 2015 23:34:51 GMT
Cool! You gain the extra spawner options that way.
|
|