Unity Learn home
View Tutorial Content

Lesson 4.2 - Follow the Player

Tutorial
Beginner
+10 XP
1 Hour
(13799)
Overview
Skills
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: January 03, 2024
2022.3
2022.2
2022.1
2021.3
2021.2
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
Language
English
Overview Video
Overview
Lesson 4.2 - Follow the Player
0 Secs
Lesson 4.2 - Follow the Player