CHAPTER 15

Animating the Player Character

In this chapter, you’ll make Dottima, the player character, move about the playfield. You’ll write some code to implement Dottima’s motion using the four arrow keys. You’ll also create some animations for Dottima and make the animations work inside the game. The animations will be very simple with just a few frames of animation, but that’s a good way to get started with learning Unity’s animation tools.

Simple Player Movement

In this section, you’ll put in simple player movement for Dottima. At first, you won’t worry about collisions with the maze. You do the simple things first and gradually add more features, one by one, until you have a game! Well, that’s a bit too simplistic, but you get the idea. ...

Get 2D Game Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.