Author Archive for Petri Lankoski

18
Jun
15

Tutorial: 1st-person sneak in Unity 5, part 7

In addition to door, I want to have force field gates that are controlled by levers. I also want to have force field gate malfunctioning so that the force field goes on and off defined intervals (with random variation).

Continue reading ‘Tutorial: 1st-person sneak in Unity 5, part 7′

08
Jun
15

Tutorial: 1st-person sneak in Unity 5, part 6

Previous parts of tutorial

Next I setup something for regaining energy and health. I want the PC to be gain health or power while it stands next to the power-up (and as long as the power-up have something to left to give). The power-up keep its state so that it does not pop us as full if the PC gets back to the level. I also want to visualise in some degree how much health/energy power-up has left or if it is fully drained.

Continue reading ‘Tutorial: 1st-person sneak in Unity 5, part 6′

16
May
15

Tutorial: 1st-person sneak in Unity 5, part 5

This part adds logic for the PC and keep track of things such as health, dying. I also add functionality for invisibility (that have already partly added in Guard class).  I also add HUD using the new GUI system to show health and energy (that is used to maintain invisibility).

Previous parts:

Continue reading ‘Tutorial: 1st-person sneak in Unity 5, part 5′

15
May
15

Tutorial: 1st-person sneak in Unity 5, part 4

This part will add doors leading a level to another and a logic for adding/moving the PC object in the correct place on the scene.

Continue reading ‘Tutorial: 1st-person sneak in Unity 5, part 4′

14
May
15

Tutorial: 1st-person sneak in Unity 5, part 3

Now we have a simple agent that follows patrol route and change colour when it sees the player object. To make this usable and interesting in the game, we need to extend to functionality and have something else than a cube.

Previous parts of tutorial

Continue reading ‘Tutorial: 1st-person sneak in Unity 5, part 3′

10
May
15

Tutorial: 1st-person sneak in Unity 5, part 2

The first part of tutorial: /2015/05/07/tutorial-1st-person-sneak-in-unity-5-part-1/

The guards needs to be able to observe their surroundings so we need a perception system. I want to make agent not to see its back, but sensing if someone is really close and have some peripheral vision with limited range (cf figure below). Also, guard should not be able to see through obstacles.

Continue reading ‘Tutorial: 1st-person sneak in Unity 5, part 2′

07
May
15

Tutorial: 1st-person sneak in Unity 5, part 1

This tutorial goes through how to build a 1st person sneaking game with simple enemies/guards that patrols predefined routes and if they spot the PC they start to follow and attack if they get near enough. A short video clip demonstrates the guard behaviour this tutorial builds.

This tutorial assumes that you are familiar with Unity and can create game objects, prefabs, and scripts.  The code snippets below are in C#.

Continue reading ‘Tutorial: 1st-person sneak in Unity 5, part 1′




Categories

Archives

Petri Lankoski

Books

Character-Driven Game Design Character-Driven Game Design

Follow

Get every new post delivered to your Inbox.

Join 725 other followers