Unity 2D Animation Tutorial - Idle Run Jump Animations And Transitions Between Them Using C# Script

  Рет қаралды 73,244

Alexander Zotov

Alexander Zotov

Күн бұрын

#unitytutorial #simpleunityGame #unityanimationtutorial
In this video tutorial, I will show you how to create a set of animations for your character. They will be Idle, Run And Jump animations. Also we will create transitions between them and I will show how to create a controller for those transitions using quite simple C# script.
TO BLAST! - My New Fun Relaxing Puzzle Game Available On Google Play Store
play.google.com/store/apps/de...
Consider purchasing my ULTIMATE UDEMY COURSE with great discount
www.udemy.com/how-to-make-gam...
If you like what I'm doing then you can support me through
www.patreon.com/alexanderzotov
or here
www.paypal.me/AZotov
Thank you)
Art Assets
Character
opengameart.org/content/bevou...
Environment
opengameart.org/content/2d-su...
What this video is about and what it can be used for also: unity 2d tutorial,
Unity 2D Animation Tutorial - Idle Run Jump Animations And Transitions Between Them Using C# Script, unity animation tutorial, unity idle animation, unity run animation, unity jump animation, unity animation transition, unity animation transition script, unity animator, unity animation 2d, unity animation character, unity animation controller, unity animation script, unity animation trigger, unity animation, unity animation event, learn unity fast, unity tutorial, how to make games with unity, unity how to make game, unity how to make 2d game, not as good as brackeys but good as well.

Пікірлер: 268
@davidchollez5784
@davidchollez5784 5 жыл бұрын
after follow 3 differents tutorials, I found yours and it is great, efficient, clear and short, congrat and thank you
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Thanks for watching!
@BelieveAndFlourish
@BelieveAndFlourish 3 жыл бұрын
Short, simple, and to the point. I am very grateful for a tutorial set up like this! No fluff, just straight to the point.
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
Happy to help. Thank you!
@jadrianmc3420
@jadrianmc3420 4 жыл бұрын
3:47 Stamping this for myself, thanks for the tuts! Applicable for 3D as well.
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
Happy to help
@Pavelbalaban
@Pavelbalaban 4 жыл бұрын
Thank you, you've helped me in 10 minutes that I couldn't understand for a whole day :)
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
You are welcome :-)
@supgamen5832
@supgamen5832 4 жыл бұрын
Same here took me hours to find this video
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
Happy to help
@patchopaa383
@patchopaa383 2 жыл бұрын
This was really easy to understand, thank you!
@shakilahmed374
@shakilahmed374 3 жыл бұрын
your tutorials helped me a lot to create my first game, Thanks man!
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
Happy to help
@zombrexgame6670
@zombrexgame6670 4 жыл бұрын
You are a lifesaver, LEGEND!!!
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
😌
@denysuhendraproject5251
@denysuhendraproject5251 3 жыл бұрын
Thank you very much, when I search for Unity tutorial I often looks for your tutorials first, I learned a lot from you. Have a great day !
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
Thank you very much!
@YakutDeveloper
@YakutDeveloper 2 жыл бұрын
Wokwok ada deny
@denysuhendraproject5251
@denysuhendraproject5251 2 жыл бұрын
@@YakutDeveloper mantap, sudah belajar sampai luar negeri rupanya👍
@YakutDeveloper
@YakutDeveloper 2 жыл бұрын
@@denysuhendraproject5251 udah dari dulu sih bang, cuma lupa codenya jadi nonton lagi wokwok 🗿🤙
@ynot13s
@ynot13s 4 жыл бұрын
Thank you so much!! It helps me a lot. I will buy your unity course just for this video.
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
Happy to help. Thank you very much!
@PakGrantChristie
@PakGrantChristie 5 жыл бұрын
Another great tutorial. Thanks :)
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
You are welcome!
@lisaaulia2794
@lisaaulia2794 4 жыл бұрын
Thank you so much for your video. It really helps me alot! >
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
You are welcome!
@meenuchan7946
@meenuchan7946 2 жыл бұрын
Thanks a lot for this awesome tutorial!
@syn1819
@syn1819 3 жыл бұрын
//i might have some mistakes here ;-; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Transitions : MonoBehaviour { private Rigidbody2D rb; private Animator anim; private float move; private float dirX; private bool facingRight = true; private Vector3 localScale; // Start is called before the first frame update void Start() { } // Update is called once per frame private void Start() { rb = GetComponent(); anim = GetComponent(); localScale = transform.localScale; moveSpeed = 5f; } private void Update() { dirX = Input.GetAxisRaw("Horizontal") * moveSpeed; if (Input.GetButtonDown("Jump") && rb.velocity.y == 0) rb.AddForce(Vector2.up * 700f); if (Mathf.Abs(dirX) > 0 && rb.velocity.y == 0) anime.SetBool("isRunning", true); else anime.SetBool("isRunning", false); if (rb.velocity.y == 0) { anime.SetBool("isJumping", false); anime.SetBool("isFalling", false); } if (rb.velocity.y > 0) anime.SetBool("isJumping, true"); { anime.SetBool("isJumping", false); anime.SetBool("isFalling", true); } } private void FixedUpdate() { rb.velocity = new Vector2(dirx, rb.velocity.y); } private void LateUpdate() { if (dirX > 0) facingRight = true; else of(dirX < 0); facingRight = false; if (((facingRight) && (localScale.x < 0)) || ((!facingRight) && (localScale.x > 0))) localScale.x *= -1; transform.localScale = localScale; } } //leave a like :D
@boomatics1365
@boomatics1365 2 жыл бұрын
You wrote anime its anim
@loredeveloping9435
@loredeveloping9435 2 жыл бұрын
You had a lot of mistakes, for example you write wrong things, 'of' instead 'if', in the part of private void fixedupdate your character swipe the direction to left, and it was because you put a ; in ( > 0). You forgot to put private float 'moveSpeed', you wrote 'anime' instead 'anim'. But not worry you can improve this erros practicing every day:) Here is the funtional code using System.Collections; using System.Collections.Generic; using UnityEngine; public class Character : MonoBehaviour { private Rigidbody2D rb; private Animator anim; private float moveSpeed; private float dirX; private bool facingRight = true; private Vector3 localScale; // Start is called before the first frame update private void Start() { rb = GetComponent(); anim = GetComponent(); localScale = transform.localScale; moveSpeed = 3f; } private void Update() { dirX = Input.GetAxisRaw("Horizontal") * moveSpeed; if (Input.GetButtonDown("Jump") && rb.velocity.y == 0) rb.AddForce(Vector2.up * 500f); if (Mathf.Abs(dirX) > 0 && rb.velocity.y == 0) anim.SetBool("isRunning", true); else anim.SetBool("isRunning", false); if (rb.velocity.y == 0) { anim.SetBool("isJumping", false); anim.SetBool("isFalling", false); } if (rb.velocity.y > 0) anim.SetBool("isJumping", true); if (rb.velocity.y < 0) { anim.SetBool("isJumping", false); anim.SetBool("isFalling", true); } } private void FixedUpdate() { rb.velocity = new Vector2(dirX, rb.velocity.y); } private void LateUpdate() { if (dirX > 0) facingRight = true; else if (dirX < 0) facingRight = false; if (((facingRight) && (localScale.x < 0)) || ((!facingRight) && (localScale.x > 0))) localScale.x *= -1; transform.localScale = localScale; } }
@gamebzee
@gamebzee Ай бұрын
@@loredeveloping9435 //here u go the solved one using System.Collections; using System.Collections.Generic; using UnityEngine; public class Transitions : MonoBehaviour { private Rigidbody2D rb; private Animator anime; private float move; private float dirX; private bool facingRight = true; private Vector3 localScale; // Start is called before the first frame update private float moveSpeed; // Update is called once per frame private void Start() { rb = GetComponent(); anime = GetComponent(); localScale = transform.localScale; moveSpeed = 5f; } private void Update() { dirX = Input.GetAxisRaw("Horizontal") * moveSpeed; if (Input.GetButtonDown("Jump") && rb.velocity.y == 0) rb.AddForce(Vector2.up * 700f); if (Mathf.Abs(dirX) > 0 && rb.velocity.y == 0) anime.SetBool("isRunning", true); else anime.SetBool("isRunning", false); if (rb.velocity.y == 0) { anime.SetBool("isJumping", false); anime.SetBool("isFalling", false); } if (rb.velocity.y > 0) anime.SetBool("isJumping", true); { anime.SetBool("isJumping", false); anime.SetBool("isFalling", true); } } private void FixedUpdate() { rb.velocity = new Vector2(dirX, rb.velocity.y); } private void LateUpdate() { if (dirX > 0) facingRight = true; else if(dirX < 0); facingRight = false; if (((facingRight) && (localScale.x < 0)) || ((!facingRight) && (localScale.x > 0))) localScale.x *= -1; transform.localScale = localScale; } }
@nicklasl7973
@nicklasl7973 3 жыл бұрын
Thanks again for a great tutorial!
@shaymessfgc653
@shaymessfgc653 4 жыл бұрын
Thank you a lot! This really helped! Only recommendation would be to post a like to the script to leave less room for error in us copying it down from the video
@FortbloxNET
@FortbloxNET 5 жыл бұрын
super tutorial. helped me a lot!
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Thanks for your feedback!
@softoscience335
@softoscience335 4 жыл бұрын
One of the best video I have ever seen.
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
Thank you
@sergiom5403
@sergiom5403 5 жыл бұрын
thanks alot, good luck my friend
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
:-)
@BakeCookAdventure
@BakeCookAdventure 3 жыл бұрын
your tutorial is great. Thanks for the sharing and I hope you can create more videos. Thanks once again
@skidmdevepicctg191
@skidmdevepicctg191 4 жыл бұрын
Thanks so much subbed and liked
@experienced-user
@experienced-user 4 жыл бұрын
thanks, you solved my proble with delay between two states, Transition Duration = 0, cool
@umarra9191
@umarra9191 3 жыл бұрын
Amazing teacher I have ever seen. Long live sir with happiness and success
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
Happy to help
@youssefbenarab8839
@youssefbenarab8839 4 жыл бұрын
Thank you for your help!
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
Happy to help
@wignermatos1470
@wignermatos1470 5 жыл бұрын
Thanks for the video
@sairampidugu6161
@sairampidugu6161 2 жыл бұрын
Thank You so much Brother ❤️
@yasheshpatel3605
@yasheshpatel3605 5 жыл бұрын
Awesome man
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Thank you very much!
@CouchFerretmakesGames
@CouchFerretmakesGames 5 жыл бұрын
Good one, thanks! Have you tried OBS to record your videos? It's free so you can get rid of the watermark. :)
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
I'm OK with watermark :-) But thanks for the tip ;-)
@fareshariri3159
@fareshariri3159 3 жыл бұрын
Awesome
@roman43933
@roman43933 5 жыл бұрын
I Love Your tutorial.
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Thanks. Me too :-)
@roman43933
@roman43933 5 жыл бұрын
Thank sir love from india
@mdtechnology7617
@mdtechnology7617 3 жыл бұрын
you are great sir...... thanks
@TechnicalAkshay
@TechnicalAkshay 5 жыл бұрын
greatly explain
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Thank you!
@LeonardoLoor
@LeonardoLoor 5 жыл бұрын
Genial tutorial, saludos desde ecuador !!!
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Thanks! Must be warm there. We got snow already :-)
@enri4996
@enri4996 5 жыл бұрын
Nice Alexander.
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Thank you!
@thanhlong4636
@thanhlong4636 4 жыл бұрын
i love this video
@anupkhodwe
@anupkhodwe 2 жыл бұрын
awesome...... and subscribed channel
@jafaralturfy5053
@jafaralturfy5053 3 жыл бұрын
Thanks❤️
@jeongshurouq6046
@jeongshurouq6046 2 жыл бұрын
your code is beautiful
@mdaltaf3610
@mdaltaf3610 2 жыл бұрын
Congrats you earn a subscriber.
@brandone8164
@brandone8164 4 жыл бұрын
you are the BEST
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
Thank you very much!
@elsabio420
@elsabio420 3 жыл бұрын
thx sooooooooo much
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
Happy to help
@waretaSL
@waretaSL 3 жыл бұрын
Hi sorry if this is a stupid question but i can't seem to find a link to your script? where can i find it? this tutorial is awesome by the way! finally something super beginner friendly that i can follow to help me with my school projects.
@debugmyth4836
@debugmyth4836 4 жыл бұрын
when i create a game and want help i open youtube and search Alexander Zotov.very simple
@rissaaulia5174
@rissaaulia5174 4 жыл бұрын
thanks so much :)
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
You are welcome!
@berlynsampani4348
@berlynsampani4348 4 жыл бұрын
what version of unity did u use?
@mubeenshaikh7711
@mubeenshaikh7711 4 жыл бұрын
Thanks alot
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
You are welcome!
@dragonballzfan315
@dragonballzfan315 5 жыл бұрын
Great :)
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Thanks!
@dragonballzfan315
@dragonballzfan315 5 жыл бұрын
Sir check out this youtuber he is making a game with unity kzbin.info/door/l5kHzl9tZyF1IYxvJnmgEA Thanks :)
@tohedul111
@tohedul111 3 жыл бұрын
Nice, you explained very well. Can you make the same video with 3D object?
@TDPlayz
@TDPlayz 4 жыл бұрын
Oh cool, I have that pack :)
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
👍
@mfahadasghar
@mfahadasghar 4 жыл бұрын
thanks sir
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
You are welcome!
@sovietonionisthebestonion3805
@sovietonionisthebestonion3805 4 жыл бұрын
It is still playing the idle animation how can I change between the animations ? I did exactly like you did.
@WorldAquariumSingapore
@WorldAquariumSingapore Жыл бұрын
what if your character is a top down game and your character how to move up & attack , cause the character face will be different and u cant use the same set of parts for left right and attack
@ezalor9555
@ezalor9555 5 жыл бұрын
Great channel and great video!!! I suggest you might upgrade the recording software for a better resolution.
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Thanks! I will upgrade it I assure you.
@ronaldenoy9021
@ronaldenoy9021 3 жыл бұрын
Where did you create te idle and other animation? Blender or in photoshop animate? Thankyou
@EroDoman
@EroDoman 3 жыл бұрын
I LOVE U
@emanuel-gamer9420
@emanuel-gamer9420 5 жыл бұрын
Suscrito Saludos De Arentina
@CarloCalcagno
@CarloCalcagno 4 жыл бұрын
I had problems with animations because in my case when i moved the character on the x axis, the y axis of the Rigidbody was slitly different from zero, i solved modifing the code, instead of zero i put a value between -0.001 and +0.001
@marcolizzi4980
@marcolizzi4980 3 жыл бұрын
Can you do a tutorial where you also show how to set the shooting animation?
@Seichensi
@Seichensi 4 жыл бұрын
And what about adding animation Directly to the character; such as blinking or opening mouth? Can you "stick in" the mouth image to use this method or it's better to use whole sprites technique instead?
@serpaolo7413
@serpaolo7413 4 жыл бұрын
Whole sprites are used, one with eyes open -> one with eyes closed (back and forth )
@magicjuicechannel
@magicjuicechannel 5 жыл бұрын
Кликнул на видео не замечая названия канала. Услышав акцент думаю "русский что-ли?". И тут вижу на 2:22 "Новая папка" Хороший туториал, короче, спасибо)
@BluePhantomGames
@BluePhantomGames 3 жыл бұрын
Can I use this for movement and shooting?
@bozone6835
@bozone6835 3 жыл бұрын
Hi I have a problem with script when I write localScale.x *- -1; down work and block all project!!!!!!! Can you help me PLS?
@ncoast9111
@ncoast9111 3 жыл бұрын
First of all THANK YOU! My animations are FINALLY seamless. However, I did have to tweak some things. On the -jump up- to -jump down- animation I turned exit time off and deleted the numbers next to exit time and transition time. This made my animation loop endlessly. I finally figured out that if I don't delete the exit time number but still turn exit time off it worked for some reason. I needed a transition time for -jump up- to -jump down- I had to mess around with gravity, mass, and jump force
@gamEater121
@gamEater121 3 жыл бұрын
Plss help me nullreferenceexeption : Object references not set to an instance of an object ...plss help me with this error
@1Nurali
@1Nurali 4 жыл бұрын
Супер. Как всегда Александр лучший. Вопрос используя edge collider персонаж выполняет падение потому что rb.velocity прышает от - 005 до +004. Выходит юзать придется всегда бокс коллайдер?
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
Эдж коллайдер вообще лучше избегать.
@kartr4166
@kartr4166 4 жыл бұрын
This video has been the most helpful one I've seen on making the character move with animations, I do have a question tho, I followed this to a T and there is just one issue I'm having, my character is spazzing out and walking like they are going left when they are moving to the right and vice versa, as well as just appearing glitchy, do you or anyone have any idea what might've caused this?
@kartr4166
@kartr4166 4 жыл бұрын
For reference, I tested this tutorial out with the Sunnyland 2D fox sprite
@lithiumjuiceartwork7091
@lithiumjuiceartwork7091 3 жыл бұрын
@@kartr4166 look up at Ludo Le Mulot's answer, it helped me with the same problem
@pinkeshparmar6089
@pinkeshparmar6089 Ай бұрын
hi my game is 2d platformer but after build i run game into my android device the game is work properly but when i lock my phone by side lock buton and when i again pres the side lock button for unlocking my device mobile is not asking me about my password game is firectly open with i unlock my device and game is playable without unlocking and when i quit or exit a game my phone is locked behind the game so when i exit my device is asking me to unlock the mobile so idk whats the problem and how to resolve this can you help me?
@labhanshpatel1200
@labhanshpatel1200 4 жыл бұрын
Great, but if i am not wrong this will not work while player is running on inclined surface because then its rb.velocity.y will not be equal to zero (0) .
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
You are right
@q_q123
@q_q123 4 жыл бұрын
This is a problem if you're gonna be using different surfaces on different y locations
@Kingizeekiel
@Kingizeekiel 3 жыл бұрын
Whats up with the | | in the script?
@faiz7180
@faiz7180 4 жыл бұрын
Why all of my animations play at the same time? Is there any way to fix this?
@Zahard_ph
@Zahard_ph 2 жыл бұрын
hi. can you create a video fix about tilemap, please? it does not work perfectly with this video
@user-sg5yu6im8n
@user-sg5yu6im8n 4 жыл бұрын
где взять скрипт Character? Не переписываеть его же вручную
@pruinee
@pruinee 4 жыл бұрын
Hey i have an error that says Assets/Character.cs(57,3): error CS1525: Unexpected symbol `localScale how do i fix this
@1Nurali
@1Nurali 4 жыл бұрын
Find localscale and fix it, because its syntax error maybe you forgot something
@Zorotas
@Zorotas 3 жыл бұрын
hello, my character doesn’t move, only the animation comes but he doesn’t run to the left or right. he does jump. please help me...
@ennizodev
@ennizodev 2 жыл бұрын
same :(
@zarcainformation6525
@zarcainformation6525 3 жыл бұрын
hello would you do a tutorial where the player opens a chest
@Riversofash
@Riversofash 4 жыл бұрын
2:41 I cannot for the life of me get this to work. I added my two idle frames to the timeline and nothing happens. Can anyone help me out?
@nicklasl7973
@nicklasl7973 3 жыл бұрын
Is it possible to change some values so the character can run on un-even ground. Now it does not work so well, only on flat ground. I have tried fixing this myself by adding "isGrounded" and the y speed to greater than 0.5. But no luck. Thanks :)
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
I think isGrounded idea should works fine. Maybe you play with it a bit more?
@nicklasl7973
@nicklasl7973 3 жыл бұрын
@@AlexanderZotov I will of course. Its something with the velocity when running downhill that is a problem, isFalling animation starts.
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
I see
@roaser5510
@roaser5510 3 жыл бұрын
why i cant it says Assets\Character.cs(7,13): error CS0246: The type or namespace name 'RigidBody2D' could not be found (are you missing a using directive or an assembly reference?) pls help me
@harrisonorosz7559
@harrisonorosz7559 3 жыл бұрын
Not sure if its too late but im pretty sure you need to lowercase the 'B'
@MoneyAK
@MoneyAK Жыл бұрын
you spelled it incorrectly make sure that b is lowercase letter like Rigidbody2D
@tgamerdz5377
@tgamerdz5377 5 жыл бұрын
I did everthing when i click play he stay idle how i move him
@jonasnober7934
@jonasnober7934 4 жыл бұрын
I have the same Problem, just try out a bit.
@swetasinha4746
@swetasinha4746 3 жыл бұрын
Want a script which can do all aniamtion even it can make your player move
@3rdshura
@3rdshura 5 жыл бұрын
Hey, Is there any way to modifie the code for mobile touch controls ?
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Next video to this one is right about it :-)
@razonspielt1851
@razonspielt1851 4 жыл бұрын
Please help me my player makes the animation but he stays where he is.
@ARGallardo_
@ARGallardo_ 4 жыл бұрын
HELP :C when my characters fall and touch the floor, he dosn't start again with the iddle animation. He is walking but continue with the animation of isJumping :(
@user-qh6io9bu7q
@user-qh6io9bu7q 4 жыл бұрын
I had such a problem, try changing the mass to 1 and gravity Scale to 1
@Deaveey
@Deaveey 3 жыл бұрын
@@user-qh6io9bu7q doesnt work :(
@Deaveey
@Deaveey 3 жыл бұрын
@Alexander Zotov my character keeps on falling animation any solutions to fix this?
@playboicartihey
@playboicartihey 3 жыл бұрын
same. could you fix it ?
@Deaveey
@Deaveey 3 жыл бұрын
​@@playboicartiheykzbin.info/www/bejne/fIXbgn5-fJqKeaM Much better
@Deaveey
@Deaveey 3 жыл бұрын
Alex please help me, i wont get it to work every thing works except when i start the game its stuck on falling animation i tried so many things but cant figure it out pls help
@muhammadmohsen8732
@muhammadmohsen8732 3 жыл бұрын
Check this tutorial out , it might help you : kzbin.info/www/bejne/i3OUlnargpemnKc
@roman43933
@roman43933 5 жыл бұрын
sir how to make crouch animation for andriod
@shayarabanotalks1967
@shayarabanotalks1967 2 жыл бұрын
Bro in code c# it showing an error CS1513 please tell me how to solve it
@8978martin
@8978martin 5 жыл бұрын
pleace Tactics System tutoria
@tejaskutal2922
@tejaskutal2922 3 жыл бұрын
How to use this button without any animation to character
@50crypts42
@50crypts42 5 жыл бұрын
need some help my character keeps doing the falling animation and doesn't do any other animations help
@Akhaada
@Akhaada 5 жыл бұрын
uncheck the IsTrigger under rigid body 2d...use colliders on which it falls
@zizzi6658
@zizzi6658 4 жыл бұрын
How can I make the character jump when I press the UP arrow key ?
@1Nurali
@1Nurali 4 жыл бұрын
Use keycode
@jonasnober7934
@jonasnober7934 4 жыл бұрын
why is mine not working? It just turn around and sometimes do jump Down Animation. He does not move. help pls
@senseisalt1863
@senseisalt1863 4 жыл бұрын
your body type under rigidbody2d is probably static change it to dynamic
@alin6337
@alin6337 4 жыл бұрын
I have an error that says:Controller 'Idle1': Transition '' in state 'run' uses parameter 'isJumping ' which does not exist in controller.
@DamanD
@DamanD 4 жыл бұрын
i had that too, you forgot to set the bool (in the video: 3:54)
@mikulisek6939
@mikulisek6939 Жыл бұрын
where is the link to his assets?
@tanishijain6164
@tanishijain6164 8 ай бұрын
hi thanks can you please teach me more on the code
@maki3815
@maki3815 4 жыл бұрын
wer can i find the script ?
@RoboKiller12112
@RoboKiller12112 2 жыл бұрын
Please someone respond. How did he get the character script with all the code?
@RoboKiller12112
@RoboKiller12112 2 жыл бұрын
He just says he named it character but doesnt say where he got it form. Plz help
@herom123
@herom123 5 жыл бұрын
have you your game on google play or app store. I will be happy if you answer my question. And I thanks for this information. :D my inglish can bad... :S
@jonasnober7934
@jonasnober7934 4 жыл бұрын
"my inglish can bad" xd
@jonasnober7934
@jonasnober7934 4 жыл бұрын
would be happy* , I thank you for* , my english is bad*
@projectg9747
@projectg9747 3 жыл бұрын
Why my character flipping like crazy? When it move right, it start flipping so fast
@reubenfry7382
@reubenfry7382 3 жыл бұрын
do you have z axis locked? if nor lock it if that doesnt work i dont know sorry
@vigneshkadam3960
@vigneshkadam3960 4 жыл бұрын
i have completed all animations, but when i open animator window , its blank..what shouls i do..?? please help
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
Maybe you forgot to select a game object you animate in hierarchy?
@vigneshkadam3960
@vigneshkadam3960 4 жыл бұрын
@@AlexanderZotov thanx it worked..!!
@user-qh6io9bu7q
@user-qh6io9bu7q 4 жыл бұрын
а почему мой персонаж может лазать по стенам?? как сделать чтоб такого не было? напишите пожалуйста
@boratsagdiyev1586
@boratsagdiyev1586 4 жыл бұрын
Copied your entire guide and my character goes idle, after run it sticks to run animation, and jump doesnt work. I wonder why, all syntax is correct >
@marksteven6824
@marksteven6824 5 жыл бұрын
my character does not move... it performs the animations but it is not moving to right and left..please help me
@marksteven6824
@marksteven6824 5 жыл бұрын
Yehey i got it! thanks to this video, it helped me a lot
@AlexanderZotov
@AlexanderZotov 5 жыл бұрын
Cool! What was wrong?
@marksteven6824
@marksteven6824 5 жыл бұрын
@@AlexanderZotov I forgot to Put a code for his movement to the both direction.
Idle, Run and Jump Animations - Platformer Unity 2D
10:13
Game Code Library
Рет қаралды 27 М.
Can you beat this impossible game?
00:13
LOL
Рет қаралды 52 МЛН
100❤️
00:20
Nonomen ノノメン
Рет қаралды 50 МЛН
2D PLATFORMER PATROL AI WITH UNITY AND C# - EASY TUTORIAL
7:31
Blackthornprod
Рет қаралды 156 М.
Animated Character Jump (Unity Tutorial)
16:03
Ketra Games
Рет қаралды 74 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 677 М.
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 502 М.
Improve Your Platformer with Forces | Examples in Unity
7:01
Dawnosaur
Рет қаралды 164 М.
MELEE COMBAT in Unity
21:07
Brackeys
Рет қаралды 1,6 МЛН
Unity 2D Player Move and Jump with Groundcheck Tutorial
11:13
MoreBBlakeyyy
Рет қаралды 44 М.
Escaping Unity Animator HELL
18:18
Lost Relic Games
Рет қаралды 493 М.