Reader small image

You're reading from  Unity 5.x Animation Cookbook

Product typeBook
Published inMay 2016
Reading LevelExpert
PublisherPackt
ISBN-139781785883910
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Maciej Szczesnik
Maciej Szczesnik
author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik

Right arrow

Action Points - performing an action in a specified spot


Action Points are a common concept used for characters in games that have to perform a certain action in a certain spot. You will find a lot of them in RPG games where NPCs populate towns and perform different actions creating an illusion of a living community. We are going to address a simple case of an Action Point in this recipe.

Getting ready

We are going to use a character with three animations: WalkIdle, and Action. We are also going to use the SetSpeedFromAgent.cs script from the Using Blend Trees to blend walk and run animations recipe in Chapter 5Character Movement. You can also open the provided example Unity project and go to the Chapter 05 Character actions and expressions\Recipe 05 Action points performing an action in a specified spot directory. You will find an Example.scene scene there. Play the game to see the effect—the Humanoid character will approach an Action Point and perform a pick up animation.

How to do it...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity 5.x Animation Cookbook
Published in: May 2016Publisher: PacktISBN-13: 9781785883910

Author (1)

author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik