Idle, Run and Jump Animations - Platformer Unity 2D

preview_player
Показать описание
**FREE animation package on my Patreon!**
Hi! This video shows an easy way to animate your 2D platformer character. We'll animate their Idle, Running and Jumping animations! We'll use a blend tree to keep the controller super clean.

We'll also be using blend trees to create the cleanest animator controller for your project.

I start off with the project we made in our 2D Platformer Movement video:

I used this asset by ZeggyGames for our sprite animation base:

All source code for all videos I have made and will make in the future can be found on my Patreon (the script for the player movement is on there for free!):

I'll be posting new videos every Friday, so be sure to subscribe to see what kind of adventure we can go on together! I'm excited! :-)

If you have any suggestions, feedback or questions, be sure to comment below! Any opinions will help me out on this journey ♡

0:00 - Intro
0:18 - Sprite Assets and Cat
0:35 - Aseprite Exporting
0:52 - Unity Sprite Setup
1:43 - Animation Windows
1:57 - Create Idle Animation
2:47 - Create Walk Animation
3:39 - Create Jump + Fall Animations
4:00 - Animator Blend Tree Setup (Idle + Walking)
5:09 - Animator Blend Tree Setup (Jump + Fall)
6:03 - Animator Transitions
6:40 - Ground Check Collider
7:13 - Editing Player Movement Script
9:32 - Outro + Working Animator
Рекомендации по теме
Комментарии
Автор

FREE SCRIPT AND PACKAGE for all sprites, scripts, controller and player movement on my Patreon!

GameCodeLibrary
Автор

Congratulations on 1, 000 subscribers! It's cool to see a modern Unity tutorial!

jazioxgaming
Автор

That clarity stuttering was crazy!!! Good video

ThM
Автор

My movement code was different so i had to make a new “void” where it checks if the numbers are negatives or positives and it flips them using the sprite renderer. Also your voice is so calming and great tutorial, helped me a lot.

Themediocredude
Автор

SUBBED
Thank you so much for your work!! And also your Harry Potter accent and voice makes it even better! Also, adorable sprites, and loved the Mother 3 menu arrenged theme at the end! I NEED MORE

zenden
Автор

OMG THANK YOU, i was going insane, you are the first one that clearly explained the pixel per Unit, i was wondering why it looks so bad and no other tutorial explained it like you did, thank youuuu

hercules
Автор

❗❗❗😱📢 50% OFF LAUNCH SALE!! 😱👾❗❗❗
BUY THE COMPLETE GAME TEMPLATE NOW!!!

GameCodeLibrary
Автор

Thank you, you showed me where to get very complete template assets, made me use flip and how to jump. Thank you again :D.

staxhinho
Автор

Thank you for the video! Cant wait for more.

superiormrage
Автор

Hey - looks good! Cool use of the asset pack

Zegley
Автор

[wears helmet] i'm very thankful for any YTubers dev creating contents like this.
not complain, just suggeting:
If this vid was relese 10 years ago, I bet it will catch alot of views. but nowdays YT has alot of these Unity beginner series. so I would suggest either make intermediate level tutorials or publish videos daily so your channel won't be at the bottom of the Youtube algorithm list. Otherwise, you wont get much satisfaction result. Content creators should understand that viewers will only subscribe when they find the information very useful and unique to them.

also, its worth methioning that if you are doing pixel art animation, you might want to introduce the unity semi-official aseprite pack that will auto make the animator and clips for you using the tags in aseprite.

bluzenkk
Автор

This is getting out of subject but I am in love with your voice 🙌

Vulcan阿修羅
Автор

You don't actually have to save each frame as its own png.
You can create a spritesheet and then cut it into individual cells using Unity's sprite editor.

Nomskiss
Автор

You're my favourite amongst the british "people"

gnomewarlord
Автор

this was amazing, learnt a lot. When moving my character it seems to tilt over in the direction I move. Anyone have a fix for this?

tegnevincent
Автор

Amazing tutorial! I have already made two games that are available on the Play Store 😀

kozmobotgames
Автор

Good job, great video! Will you do 2d top-down tutorials in the future?

pixlerin
Автор

Great and very clear tutorial!!! I love your skeddadling cat man! Just wondering if there’s an alternative to the Math.Abs??? My unity isn’t accepting it for some reason :(

mollylochrie
Автор

everytime I jump after it plays the falling animation it plays the jumping animation right after then goes to idle, the movement animations work fine

iamgoldnn
Автор

What if you have another idle animation for the character in the other direction?

KillAllCommies