O'Reilly logo

Virtual Reality Blueprints by John Williamson, Charles Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required