Now that we are able to destroy enemies, we need to ramp up the difficulty for the player again. To do so, we are going to spawn new enemies in the Level as the player is playing the game. In this way, the game can continue if the player destroys the first few enemies, and if they are too slow to defeat enemies, then the difficulty will gradually increase.
Spawning more enemies during gameplay
Choosing a spawn point where enemies will appear
First, we must decide where in the Level our enemies will spawn from. We will spawn enemies in random spots within a circular distance from an object placed in the Level. Return to the Level Editor by clicking on the FirstPersonExampleMap tab. Find the PatrolPoint1 object in the World...