Creating spawn points

When completed, our game will spawn a new zombie every five seconds at one of three spawn points. Each undead creature will then shamble toward the player to attack and consume a fresh brain. For the next step, we'll create and position three spawn points within our scene:

  1. Create three empty GameObjects, naming each one ZombieSpawnPoint and position them as indicated in Table 5.2:

Position

Name

X

Y

Z

ZombieSpawnPoint

-23

0

17

ZombieSpawnPoint

0

0

23

ZombieSpawnPoint

23

0

17

Table 5.2: Spawner positions
  1. Select one of the ZombieSpawnPoint's. In the Inspector, click on the Tag dropdown and choose Add Tag..., this will open the Tags & Layers panel. The Tag list will be ...

Get Virtual Reality Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.