top of page
Reimagined2_Gator.png

Enemy Spawner

A dynamic spawning system designed to support scalable encounters in multiplayer environments.

ENGINE

Unreal Engine 5​

PROJECT TYPE

Gameplay System

ROLE

Technical Designer

IMPLEMENTATION

Blueprints

OVERVIEW

This spawner system was meant to give designers more granular control of enemy placements while still providing a means of balancing the game feel. 

  • Spawn enemies dynamically based on nearby player presence

  • Support hand-placed, independent spawning locations

  • Scale enemy amounts to the amount of players nearby

  • Control and manage the number of active enemies

  • Avoid unnecessary processing when spawning locations are inactive

  • Establish a reusable framework for both enemies, and other NPC actors

Requirements and System Architecture

Each spawning location maintains its own player tracking and spawning state. 

​

Waves of actors are spawned across timed intervals instead of a single frame. 

​

Randomized locations get projected onto the nav mesh to vary actor positions. 

SystemArchitectureHorizontal.png

Spawner base class
Handles player detection, contains overridable events

The base class handles player detection via sphere component overlap, and maintains the nearby player count via an array. It also uses Construction Script to visualize the player distance threshold, as well as the minimum, and maximum spawn radius. 

Lizard spawner 
Spawns actors using timers

This spawner is used for lizards, which in this game are collected as a form of currency. They are spawned in waves using nested timers, and have they're spawning spread across a short interval instead of being all on one frame. 

Gator spawner 
Handles player detection, contains overridable events

Gators function as both enemies and environmental hazards in the game, and are pawns with more sophisticated Ai compared to lizards. This demanded more restrictions on how many are allowed to spawn. Both the spawner instance's count, and the levels total count are examined before spawning.  

bottom of page