Lesson 2.3 - Random Animal Stampede
Tutorial
Beginner
1 Hour
Overview
For Educators
Your progress
Summary
Overview:
Our animal prefabs walk across the screen and get destroyed out of bounds, but they don’t actually appear in the game unless we drag them in! In this lesson we will allow the animals to spawn on their own, in a random location at the top of the screen. In order to do so, we will create a new object and a new script to manage the entire spawning process.
Project Outcome:
When the user presses the S key, a randomly selected animal will spawn at a random position at the top of the screen, walking towards the player.
Recommended Unity versions
2018.4 and Above
Topics we'll cover
Language
English
Tutorial
Lesson 2.3 - Random Animal Stampede