Week 4 | Session 3 - Animate the Character - April 15, 2020
Tutorial
·
Beginner
·
+10XP
·
60 mins
·
(36)
Unity Technologies

The game is looking great so far, but the player character is a bit… lifeless. Instead of the character simply sliding across the ground, we’re going to give it animations for running, jumping, and even death! We will also tweak the speed of these animations, timing them so they look perfect in the game environment.
1. Overview
This is the same content covered in Lesson 3.3 in the independent Create with Code Course.
What you will make:
- With the animations from the animator controller, the character will have 3 new animations that occur in 3 different game states. These states include running, jumping, and death, all of which transition smoothly and are timed to suit the game.
What you will learn:
- Manage basic animation states in the Animator Controller
- Adjust the speed of animations to suit the character or the game
- Set a default animation and trigger others with anim.SetTrigger
- Set a permanent state for “Game Over” with anim.SetBool
2. Before you Begin
To participate in this session and follow along, you need:
- Unity 2018.4 installed
- An up-to-date project open in Unity:
- If you have followed along with us this week and have your own project ready, you are good to go!
- You can also download the instructor's up-to-date project and import it (If you don't know how to import a project, you can read how here)
If this is your first Create with Code live learning session, you can catch up by:
- Following along with the recordings of our previous live learning sessions
- Completing the same lessons in the independent Create with Code Course
*Note - it is not necessary for you to catch up, but it is recommended for an ideal learning experience.
3. Join us in the Zoom Webinar
There are two different live learning sessions to choose from, each one covering the same content:
- Session 1 - 9am PT (4pm UCT): Join the webinar
- Session 2 - 5pm PT (12am UCT): Join the webinar
4. Next Steps
Get caught up:
If you were not able to finish the session along with the instructors, you can catch up by:
- Re-watching this recorded session when it is posted in Step 3 above at 3am PT (10am UCT) the morning after this session's date
- Picking up where you left off in Lesson 3.3 of the independent Create with Code Course
Bonus Challenges:
- Experiment with new features (after making a backup)
- [Warning: Difficult!]
Rather than your player starting off running in place with the background moving, have the player walk into frame from the left, then begin running in place alongside the moving background
- [Warning: Difficult!]
- Look ahead to the next lesson
- If you want to go ahead and preview what we'll be covering in the next session, you can give it a try in Lesson 3.4 of the independent Create with Code Course.
5. Recorded Live Session - 13th April - 9am PST
If you missed this live session, you can catch up with the video below:
6. Recorded Live Session - 13th April - 5pm PST
If you missed this live session, you can catch up with the video below: