O'Reilly logo

Ouya Unity Game Development by Gary Riches

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

Chapter 4. Adding a Character and Making Them Move

From the previous chapter, you should have a very colorful view when you test the game, but it's somewhat lacking in interactivity. We're going to add movement to our basic character and get the Main Camera game object in Unity following them around the level as they move. We'll also add in the ability for them to push crates around the level. Finally, we'll swap out our existing character for something that is a bit fancier and trigger their built in animations as they move around the level.

Making the camera move

The first thing you hopefully noticed when we tested the scene in the previous chapter was that we were just looking in to the distance at nothing. That won't do for a game, traditionally ...

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