r/unity_tutorials • • Jun 22 '21

How to Implement Round/Wave Spawning and Scale Up Enemies on a Nonlinear Difficulty Curve | AI Series Part 19 | Full Tutorial in Comments

70 Upvotes

8 comments sorted by

3

u/LlamAcademyOfficial Jun 22 '21

Full Tutorial on YouTube

Hey all! Happy #TutorialTuesday!

This week I'm taking a look at 2 topics really important and related to one another:

Round-Based Spawning or "Waves"

So far in the AI series we've only had a fixed number of enemies to spawn. Once the player kills all those, that's it. In this tutorial I go into how to configure Round spawning in 2 ways:

  1. The player must clear all enemies before spawning a new round/wave

  2. The next round starts immediately after the last enemy spawns for the previous round

Scaling Enemy Difficulty

I'll also go into how to scale up enemies based on a custom curve for nonlinear difficulty scaling in your game. And! Because we reused the same RoundSpawner for burst spawning enemies in AI Series Part 18 last week, there's no extra work to scale up the enemies in a burst spawn area!

As always, full project code is available on GitHub!

If you're getting value from this series, please consider liking and subscribing to help these tutorials reach and add value to even more people! New tutorials every Tuesday, sometimes on other days too.

3

u/Red10193 Jun 22 '21

Nice this will be very useful

2

u/Samdogg7 Jun 23 '21

Makes me want to make a zombie game, thanks for sharing

edit: subscribed :)

1

u/LlamAcademyOfficial Jun 23 '21

Thank you! Make your zombie game! 😁

2

u/spaceleviathan Jun 23 '21

thanks for this. I need to rewrite my spawning system anyhow

1

u/LlamAcademyOfficial Jun 23 '21

I hope the series helps you in that!

2

u/ButNoTrueScotsman Jun 22 '21

I'm not good enough to immediately use, but I will certainly be watching these in the future, so thanks in advance for creating the content!