O'Reilly logo

Building a Game with Unity and Blender by Lee Zhi Eng

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Player inputs and character movements

We are now done constructing the basic user interface. Now, let's move on to player inputs and character movements! A game character, especially the one who gets controlled by the player, usually contains tons of different states, such as idling, running, attack, and so on, which changes frequently based on the mix of player inputs and other conditions, such as health point, timer, and so on.

The following is an example of a basic character structure displayed in a flow chart:

Player inputs and character movements

In Unity, there are many ways to move an object or a character, such as adjusting the variables of the transform directly, or applying ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required