August 2019
Intermediate to advanced
380 pages
9h 17m
English
Rather than relying on the placement of enemies in a Level on a set patrol, we are going to gradually spawn those enemies in the Level to present an increasingly aggressive threat to the player. As a consequence, we will set up our spawning logic to trigger repeatedly in a loop, with the time between spawns determined by a variable. In the My Blueprint panel, add a new variable called SpawnTime. Set its type to Float, make it editable, and set the default value to 10.0 for a 10-second spawn rate.
In addition to setting the spawn rate, we will also want some form of limiter on the spawning of enemies. Without this, an enemy would spawn every 10 seconds until the game ends, potentially filling ...
Read now
Unlock full access