Spawn Point Manager
v1.0
Last updated
v1.0
Last updated
Each Projectile Spawner can have any number of Spawn Points. These are the points where Projectiles will be created.
The SpawnPointManager
is a class which handles how each Spawn Point is used.
The default SpawnPointManager
simply moves from one Spawn Point to the next sequentially, as shown in the code below. You can create a new class which inherits from this in order to customize how your Spawn Points are selected.
Your game is unique! And your Spawners are unique as well! Customizing how the Spawn Points are selected is a powerful tool.
As an example, perhaps your spawner has multiple spawn positions, and they sequentially fire as in the default SpawnPointManager
-- except that each one can be destroyed by the player. As the player destroys them, you may wish to skip over the ones that have been destroyed.