Supporting our Community:
We’re making Learn Premium available to all users in perpetuity.
Start Learning.

Lesson 4.2 - Follow the Player

Tutorial
Beginner
1 Hour
Overview
For Educators
Summary
Overview:
The player can roll around to its heart’s content… but it has no purpose. In this lesson, we fill that purpose by creating an enemy to challenge the player! First we will give the enemy a texture of your choice, then give it the ability to bounce the player away... potentially knocking them off the cliff. Lastly, we will let the enemy chase the player around the island and spawn in random positions.
Project Outcome:
A textured and spherical enemy will spawn on the island at start, in a random location determined by a custom function. It will chase the player around the island, bouncing them off the edge if they get too close.
Select your Unity version
Last updated: April 15, 2020
2019.3
2019.2
2019.1
2018.4
Topics we'll cover
Language
English
Tutorial
Lesson 4.2 - Follow the Player
36
Lesson 4.2 - Follow the Player