2D Player Animation (part 1)

Creating the Idle animation for the player

Now that we have our player basic functions down, it is time to add the flare of Animation.

Objective: Add and set up an Idle animation to the player

Player Prep:

First we need to bring out the Animation window in Unity, go to Window > Animation > Animation.

Then we are going to select the Player’s sprite (which is the child of the player game object) and create a new Animation clip.

Player Sprite:

Slice the player idle images into individual cells and drag and drop all the images into the animation window.

If you find that the animation is running to fast, we can slow down the animation by reducing the number of frames per seconds within the “Sample” slot.

When you hit play, by default the player should have automatically played the Idle animation. If the player isn’t playing the Idle animation, bring up the Animator window and double check if the Idle state is “Orange” this should mean that the Idle animation clip is the default state.

--

--

--

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Post-onboarding

A woman at a laptop with code on her screen.

Calling Static Variables

Master-slave replication database concept for beginners

How would I open a ZCF document in android?

When and how to estimate Time in Software development?

Satellite and Redis….

Compute: A brief history.

We have read him books about being empathic, being kind, not bullying etc., we

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
Simon Truong

Simon Truong

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

More from Medium

Mobile Game Progression

Creating a Moving Platform in Unity

Quick tip — Upgrading your Unity project to High Definition Render Pipeline (HDRP)

Easy Way to Make an Audio Slider