Ever wanted to create a rogue-like shoot 'em up game like Vampire Survivors? In Part 7 of our guide, we will go through how to create an enemy spawning system, similar to the one seen in Vampire Survivors. You can also find Part 6 of our guide here, where we went through how to create add-on features for our characters, including selecting a character and spawning their unique weapon.
A link to a package containing the project files up to Part 7 of this tutorial series can also be found at the end of this article.
Update 13 December 2023: Still not quite sure how the Enemy Spawner component works? Check out a summary of the properties in this forum topic.
Thank you for this absolute a outstanding Tutorial!:) But I have a problem: I have 4 waves with 5 Enemys per wave. The wave interval is set to 20, the max amount of enemys is set to 100. The first wave spawns fine (5 bats), but after 20 seconds all other waves (2-4) spawn at the same time (+15 enemys). I used the latest EnemySpawner.cs and EnemyStats.cs but it won’t work as intended. Maybe someone has a solution to this, thank you in advance!
It seems, that waves 2 and 3 are just skipped, only wave 1 and 4 are spawning with this configuration. Spawn interval for each wave is set to 1.
For some reason my waves aren’t spawning in the right order. Did you have any problems with this or know a solution?
Hi grandogrando, can you make a post on our forums here instead? https://blog.terresquall.com/community/forum/video-game-tutorials/vampire-survivors/
We will need a bit more information to help you find the issue, and it will be great if you can include a screenshot of any errors in your Console window too with your forum post.