Hiding from the Player

Tutorial

intermediate

+10XP

35 mins

(84)

Unity Technologies

Hiding from the Player

In this tutorial students will take a look at the basics behind the hide behaviour. In it we will create a simple hide method that will have the agent hide behind the closest obstacle in the environment. Next, students complete the development of the hiding behaviour and work to calculate a more accurate hiding location and reduce the number of calls to the method in the update.

1. Hiding from the Player Part 1

In this tutorial, students will start to write an algorithm to have NPCs run and hide behind objects away from where the player is.

2. Hide Part 2

In this unit students continue the development of the hiding behaviour.

3. Hide Part 3

In this unit students complete the development of the hiding behaviour and work to calculate a more accurate hiding location and reduce the number of calls to the method in the update.

Complete this Tutorial