Idle, Run and Jump Animations - Platformer Unity 2D

  Рет қаралды 23,736

Game Code Library

Game Code Library

Күн бұрын

*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:
• Platformer Player Move...
I used this asset by ZeggyGames for our sprite animation base:
zegley.itch.io/2d-platformerm...
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!):
/ 2d-platformer-83575703
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

Пікірлер: 66
@GameCodeLibrary
@GameCodeLibrary 11 ай бұрын
FREE SCRIPT AND PACKAGE for all sprites, scripts, controller and player movement on my Patreon! www.patreon.com/GameCodeLibrary
@zenden1706
@zenden1706 7 ай бұрын
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
@GameCodeLibrary
@GameCodeLibrary 7 ай бұрын
Hehe thank you!! You’re the first person to notice the mother 3 music 😈 it’s mother 3 for the intro song too, but the intro is pretty quiet! I’ll keep working hard for you 🫡
@Zegley19
@Zegley19 7 ай бұрын
Hey - looks good! Cool use of the asset pack
@GameCodeLibrary
@GameCodeLibrary 7 ай бұрын
Thank you!! Your assets are all so cool - I had to use one in a vid! :-)) Thank you for your cool assets!
@jazioxmugen
@jazioxmugen 6 ай бұрын
Congratulations on 1,000 subscribers! It's cool to see a modern Unity tutorial!
@GameCodeLibrary
@GameCodeLibrary 6 ай бұрын
Thank you!!! I didn’t imagine even getting 100 subs, but I’m glad so many people can enjoy and find help from my vids :-) I’ll keep working on cleaner and better Unity tutorials for as long as I can! I want everyone to feel like that can make whatever they want 🙏 thanks for the support!
@monkelios
@monkelios Ай бұрын
thanks a LOT you really helped! idk how you only have 1k subs honestly
@jawavoncherie
@jawavoncherie 6 ай бұрын
Thank you
@Th3M729
@Th3M729 5 ай бұрын
That clarity stuttering was crazy!!! Good video
@GameCodeLibrary
@GameCodeLibrary 5 ай бұрын
Thank you :-) So satisfying to see it get fixed right!
@superiormirage321
@superiormirage321 5 ай бұрын
Thank you for the video! Cant wait for more.
@GameCodeLibrary
@GameCodeLibrary 5 ай бұрын
You’re welcome I’m glad you enjoyed it!! I try to post one every week, haven’t missed one yet 🫡🙌
@Themediocredude
@Themediocredude 3 ай бұрын
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.
@GameCodeLibrary
@GameCodeLibrary 3 ай бұрын
Thank you! Glad you got it to work for you too!! 🙏
@ines4728
@ines4728 11 ай бұрын
love your videos!!!
@EpicHashTime
@EpicHashTime 11 ай бұрын
Excellent tutorial
@GameCodeLibrary
@GameCodeLibrary 11 ай бұрын
Thank you I’m glad you liked it!
@Force5_Eye_Dev
@Force5_Eye_Dev 5 ай бұрын
Excellent video.
@GameCodeLibrary
@GameCodeLibrary 5 ай бұрын
Thank you 🥲🙏
@bluzenkk
@bluzenkk 10 ай бұрын
[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 KZbin 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.
@GameCodeLibrary
@GameCodeLibrary 10 ай бұрын
Yes I plan on doing more advanced and unique stuff! For my own sake of learning how to edit vids and having a library of easier content to reference viewers back to, I started with beginner stuff. I’m a full time senior dev when I’m not making KZbin vids, so I won’t be able to do one a day! 😝 I appreciate your views and suggestions!! I’m in no rush to get lots of views, I’m enjoying creating lil vids for now 😇 I have a list of almost 100 video plans though!! So hopefully some of those are more interesting for everyone!
@pixlerin
@pixlerin 11 ай бұрын
Good job, great video! Will you do 2d top-down tutorials in the future?
@GameCodeLibrary
@GameCodeLibrary 11 ай бұрын
Yes I will! Top down is my favourite way to make games since you can do so much with it. I have over 70 video ideas planned 😂 covering the basics with platformer first since it’s simplest! Thanks so much!
@pixlerin
@pixlerin 11 ай бұрын
@@GameCodeLibrary wow cool! Looking forward to all of them 😄
@kadamnable
@kadamnable 11 ай бұрын
cute sprite great video!!
@GameCodeLibrary
@GameCodeLibrary 11 ай бұрын
Thank you!!! I’m thinking of making a mini cat burglar game inspired by the sprite I think that’d be fun!
@parthchavan5542
@parthchavan5542 2 ай бұрын
Thx so much :)
@GameCodeLibrary
@GameCodeLibrary 2 ай бұрын
You’re welcome! I’m glad you enjoyed 🙏
@kozmobotgames
@kozmobotgames 3 ай бұрын
Amazing tutorial! I have already made two games that are available on the Play Store 😀
@GameCodeLibrary
@GameCodeLibrary 3 ай бұрын
Nice work! Glad you enjoyed!
@mollylochrie4755
@mollylochrie4755 4 ай бұрын
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 :(
@GameCodeLibrary
@GameCodeLibrary 4 ай бұрын
I'm glad you enjoyed it!! That's strange for Math.Abs not to work... What it does is flip a negative number to a positive - if it is negative. Instead you can check if the number is less than 0 then do *-1 E.g: if(myNumber < 0) { myNumber = myNumber * -1; } Hope this helps!
@mollylochrie4755
@mollylochrie4755 4 ай бұрын
thank you so much!!! @@GameCodeLibrary
@EVRYTHING2000
@EVRYTHING2000 Ай бұрын
can you show us how you copy animation from asperite to your cat character?
@TheLegendsOfPubgMobile
@TheLegendsOfPubgMobile 8 ай бұрын
😍
@fahripraz
@fahripraz 8 ай бұрын
your voice is very good for explanation
@GameCodeLibrary
@GameCodeLibrary 8 ай бұрын
Thank you, I'm glad you think so! :-)
@poopiesaywhat-2102
@poopiesaywhat-2102 3 ай бұрын
my character doesnt jump when i activated trigger
@GameCodeLibrary
@GameCodeLibrary 3 ай бұрын
Weird! You can download the package of my animations for free on my patreon and compare it to yours to see if you can find the difference 🙏
@blackpop654
@blackpop654 4 ай бұрын
what software did you use to implement the sprite assets and create your sprite?
@GameCodeLibrary
@GameCodeLibrary 4 ай бұрын
I used Aseprite! I use the free version, but you can buy it online too.
@blackpop654
@blackpop654 4 ай бұрын
@@GameCodeLibrary thank you 🥰
@arabiwasabi
@arabiwasabi 4 ай бұрын
@@blackpop654it’s also on Steam which is pretty neat and is currently on sale
@blackpop654
@blackpop654 4 ай бұрын
@@arabiwasabi i just got it off pirate bay but thanks
@arabiwasabi
@arabiwasabi 4 ай бұрын
@@blackpop654 sure, that's also a way to do it
@GameCodeLibrary
@GameCodeLibrary 2 ай бұрын
❗❗❗😱📢 50% OFF LAUNCH SALE!! 😱👾❗❗❗ BUY THE COMPLETE GAME TEMPLATE NOW!!! gamecodelibrary.itch.io/2d-platformer-template
@BeyondEyesight-eh1gn
@BeyondEyesight-eh1gn 2 ай бұрын
so the code is NOT there for free?
@GameCodeLibrary
@GameCodeLibrary 2 ай бұрын
It is: www.patreon.com/posts/2d-platformer-83575703
@Rivaldix12
@Rivaldix12 Ай бұрын
My character doesnt jump :(((
@Rivaldix12
@Rivaldix12 Ай бұрын
maybe its about my input manager settings? i dont know :(
@GameCodeLibrary
@GameCodeLibrary Ай бұрын
If you follow along with the previous video and then this one, it’ll definitely work! :-)
@Rivaldix12
@Rivaldix12 Ай бұрын
@@GameCodeLibrary thank you its working right now :)
@BeyondEyesight-eh1gn
@BeyondEyesight-eh1gn 2 ай бұрын
very fuccin nice
@GameCodeLibrary
@GameCodeLibrary 2 ай бұрын
Thank you! Glad you enjoyed
@iam_river
@iam_river 4 ай бұрын
Sorry I keep bothering you 😅 When I edited the code for animation, it sent 2 errors. 'Animator' is a type but is used like a variable The name 'Math' does not exist in the current context I think it's something I wrote. Do you think it's possible to give me the code that I can copy and paste?
@GameCodeLibrary
@GameCodeLibrary 4 ай бұрын
Hi no problem! I have the script and package for free on my Patreon :-) www.patreon.com/posts/2d-platformer-83575703
@iam_river
@iam_river 4 ай бұрын
@@GameCodeLibrarythank you!!
@czomiks
@czomiks 5 ай бұрын
It's not working😭
@GameCodeLibrary
@GameCodeLibrary 5 ай бұрын
I have the package and script free on my patreon for you to check out :-)) hopefully you can find a fix!
@BeyondEyesight-eh1gn
@BeyondEyesight-eh1gn 2 ай бұрын
free for 9 dollars @@GameCodeLibrary
@E_locked
@E_locked Ай бұрын
PLS SPEAK LOUDER
@GameCodeLibrary
@GameCodeLibrary Ай бұрын
Lol I have a new mic since this video, hopefully I’m loud enough now 🥲🙏
@BeyondEyesight-eh1gn
@BeyondEyesight-eh1gn 2 ай бұрын
did the whole thing just to learn that i need to join your patreon to unlock the code smh
@GameCodeLibrary
@GameCodeLibrary 2 ай бұрын
The previous video showed you how to do the code - and the code and entire animation package is on my patreon for free my bro: www.patreon.com/posts/2d-platformer-83575703 Living up to the username of beyond eyesight lol 🙂 I also show months worth of work for free in all my tutorials - I get nothing for doing this! Talk about a waste of my time for the sake of kindness hey!
@BeyondEyesight-eh1gn
@BeyondEyesight-eh1gn 2 ай бұрын
im sorry i was in a bad mood that day @@GameCodeLibrary
Improve your Platformer’s Jump (and Wall Jump) | Unity
8:12
Көтіңді қысып, ауылға қайт! | АСАУ | 2 серия
33:16
Мы играли всей семьей
00:27
Даша Боровик
Рет қаралды 4,4 МЛН
Godzilla Attacks Brawl Stars!!!
00:39
Brawl Stars
Рет қаралды 10 МЛН
The secrets to good Pixel Art animation! (Animation tutorial)
6:50
Pixel Overload
Рет қаралды 602 М.
Escaping Unity Animator HELL
18:18
Lost Relic Games
Рет қаралды 490 М.
How To Make A Metroidvania Map
8:05
Kilo Galaxia
Рет қаралды 9 М.
How to Code (almost) Any Feature
9:48
DaFluffyPotato
Рет қаралды 627 М.
Emulating biology to make tiny robots
12:05
Breaking Taps
Рет қаралды 111 М.
MAKING RUN, IDLE & JUMP 2D GAME ANIMATIONS - UNITY TUTORIAL
15:30
Blackthornprod
Рет қаралды 505 М.
2D Animation in Unity (Tutorial)
21:53
Brackeys
Рет қаралды 2,4 МЛН
Көтіңді қысып, ауылға қайт! | АСАУ | 2 серия
33:16