Unity’s Timeline: Time to Win a Race!

Hello all!

Today, I will go over winning the race on Timeline!

Assets Used:

A virtual dolly camera on a track.
A few cubes and a plane to create the racetrack.
A couple particle systems for fireworks
The character and animations were given to me from GameDevHQ

Setting up the Timeline

ybot animations:

The actual running clip is super short, but if you select that clip, go to the inspector, look under Animation Playable Asset, go down to loop, and turn that on, then the animation will loop if you increase the length of the clip! I also did that with the walking and eased it into the running to have the character slow down slowly.

Creating an override for a humanoid character:

In my case, I needed my character to do a victory pose while still running. To do this, you must right click the main animation track and click Add Override Track. That will make a new blank track where you can drag in new clips.

Adding an override won’t do the desired effect as is, so you will need to make an Avatar Mask. To do this, you need to find where you want to put it in the project window, then create an Avatar Mask.

Avatar Mask for my Victory Pose

Now open it and it’ll look like this, but all green. Since I only wanted my upper body to move, I turned off anything below the hips. Now the only thing left to do is add it to the override track. Select the override track, look at the inspector, then drag your avatar mask to its box!

Fireworks and Breaking the Ribbon:

To achieve this, I added activation tracks to each so when the character hits the ribbon, it breaks, then the fireworks start! Super simple!

This was a fun small project! I can’t wait to do the finale for this course!

Next up, my character will be seeking treasure!

Thank you for your time!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Marcus Cohee

Marcus Cohee

20 Followers

I am starting Unity and learning the ropes as I go! Let’s take this journey together!