Hey everyone, thanks for watching. This is my longest video with lots and lots of explanations, I'd like to know if this is what you want to see or you'd like me to do things quicker and explain less. Complete Code: pastebin.com/zLUWBa01
ikr! I hate it when I am just copying things I dont understand. Its like copying a chinese sentence when you understand nothing about it. anyone can copy even if they dont understand
OMG! This is the most ideal Unity 2D Platformer Tutorial for beginners. I'm saying this after trying a dozen of other tutorials. Keep the lessons coming please ❤
bro this is legit better than some courses on Udemy. you're a great teacher, you actually take time to explain instead of rushing things and that makes a big difference. 5 stars.
This series is excellent, everything you might need for creating a game. and everything is applicable if you want to add your own characters and animations. 10/10 perfect tutorial.
You are amazing! I've always wanted to go into video game development, and other tutorials of unity acted like I already knew how it worked. Your flawless way of explaining things to people who have no idea how anything like unity works is keeping me motivated to learn more and go farther!
If you are using VS Code or potentially other IDEs and your C# files do not have the Intellisense (autocomplete) working try the following: First of all close your IDE, then 1) Go into _Unity > Edit > Preferences > External Tools >_ and select your IDE in the _External Script Editor_ 2) Go into _Unity > Assets > Open C# Project_ If the 2 above didn't help try this: 3) Install the specified *.NET Framework* (check the Omnisharp *OUTPUT* for any Errors with a specific version mentioned next to it, *for me it was 4.7.1*) Let people know if this comment helps by liking it.
Finally! A tutorial series I can understand. You’ve helped me to actually understand what the code I’m writing actually does instead of just basically copying and pasting it
Bro, your such a good teacher of this stuff! I've spent hours watching other people's tutorials and have got lost every time... I came across you, and I've actually retaining what you show us.... Thank you so much this is so amazing
I'm bad at art :D there are tons of pixel art channels on RU-vid, try to follow their process then create the same animations that we use here and it's gonna work perfectly.
I'm liking this video series so far. I think the way you've structured this tutorial is great! Personally I'm not so interested in animations at the moment, I think they serve their place in the video tutorial though (I'll be doing back through this tutorials to add in animation at a later state); because of the chapters you've put in the videos I could easily find the part where you talk about the "grounded" collision for the jumping code (which is where the juicy stuff lies for me!). I'm a beginner to using Unity and C# but I've dabbled in very similar tutorials for GameMakerStudio2 and GML. The logic has a similar flow (with a few extra steps in units UI and vectors) but I'm understanding it well enough to see how they work and why. Thanks again!!
Thanks a lot! Make sure to implement the rest of the code though, we did fix the jumping in this video as well and other stuff not related to animation.
ahh thank you so much for your tutorials! dont worry about explaining too much it is very helpful! I already know how to write in c# but this is the first time i'm making a game (and using unity for that matter) so finding a video that explains everything step by step is perfect!
best turorial out there for beginners like me who does not have any prior knowledge of c# and wanna make a simple game as they are learning what each script does. bravo👏👏
Bro, i am so thankful that i found your video. It took me about an hour to solve the "grounded" issues cause I name my bool with a uppercase "G" instead of lowercase "g" and it won't stop the jumping animation but I figured it out. Thanks for the tutorial. You're legend my guy!
In Animation tab you can click the three vertical dots and enable Samples then change the 60 to 12 and it'll space the frames out accordingly. Also it has to be lowercase names for Parameters in the Animator. Great tutorial though I am learning a lot. :D
Glad you're learning and enjoying it, love to hear that. - Changing the samples from 60 to 12 will make the animation 5 time slower. You can space the frames yourself manually. - The parameters for the animator can be both in lower case and uppercase, the point is that they should be matching both in the animator and in the code, otherwise they won't work.
thanks for mentioning the lowercase names, I couldn't figure out why my transition wasn't working but it was because I had capitalized the run parameter but not in the transition.
I doubt anyone will see this. But I was having an issue with the jump animation repeating even though I had turned off the loop animation ability. I had to click on the transition arrow and check off the transition to self option and that stopped the Jump state from repeating. I am using Unity 2021.3.11f1. Anyway have a nice day everyone and good luck on your game dev and coding journey, may it be a good one.
ello, I doubt you will see this but I am having the same problem as you, the jump animation keeps on repeating when I test play it, I am new to unity so i do not really understand what you are saying, I am using version 2020.3.48.f1 nevermind, I fixed it by switching true/false on the transition arrows from any state > jump and jump > idle, but now I have another problem, I cannot jump
@@gargisharmaa I watched the video again and I forgot to add a tag on my ground object 19:20. Just make a tag called ground and add it on your ground object or what object you want your character to be able to jump on, Thats how I fixed it because I was not paying attention at the end. Hope this helped.
This is my Second Unity roject EVER and this course is really helping me learn the basics. I started with Marks Flappy Bird Tutorial and got to grips and this is now really helping me! Thank you so much for making this free and not on Udemy:)
If anyone is having an issue where their jump isnt working, or stuck in jump animation, my error was OnCollisionEnter2D the On was lowercase (on) instead of On. It doesnt give any error or anything it just does nothing when space is pressed. I had auto complete on too. hope this helps :)
Yay! I feel like I just leveled up (to lvl2 lol) Also, I wanted to have a jump speed independent from the walk speed and I got around it just by paying attention and applying what's discussed here! Off to the next step :3
Man, your tutorials are my favourite. Really speed launched me into making things. I took a detour into other tutorials to learn other stuff but keep coming back here for the basics.
I'm so glad I found your channel! that was more informative and educating than a brackeys video or a 6 hour college lecture. thanks so much for posting. you are the best unity creator on this platform!
I REALLY like when you take the time to explain in detail what the code is doing. I am taking my time with this to understand every step. I like that it's not just "do this then that" instruction. You are telling us 'why' and that is valuable.
for anyone struggling just double check the ground Ground and Grounded are the same, it starts to blur when your typing along and can break things. once i fixed that all worked perfectly fine.
Absolutely brilliant videos, my little old brain loves ur bite size videos and im not confused after watching them.. u explain this stuff so well.. subscribed! :)
To keep values same for my new custom character to 0.5 I did this: if (horizontalinput > 0.01f) { transform.localScale = new Vector3(0.5f, 0.5f, 0.5f); } else if (horizontalinput < -0.01f) { transform.localScale =new Vector3(-0.5f,0.5f,0.5f); }
I did if (horizontalInput > 0.01f) transform.localScale = new Vector3(2, 2, 1); else if (horizontalInput < -0.01f) transform.localScale = new Vector3(-2, 2, 1); if (Input.GetKey(KeyCode.Space)) body.velocity = new Vector2(body.velocity.x, speed);
Man, I just started trying to understand unity and making games and ur long explainations are really helpful. I didn t watch any of ur new vids, but I sure hope you still take time to explain all the small steps, because for begginers it is the only thing that makes things clearer. Your tutorials are amazing and I thank you very much for uploading them :)
Hi, just amazing work. Currently, I am having a problem that the "grounded" variable is not taking true value even after collision. I believe the collision function is not working. Please give me some suggestions to overcome this issue. Thnx
Hello, do you set the Ground object tag to "Ground" ? To do this simply click on the ground object and on the "inspector" panel on the right, set tag below the Name "Ground", hope it will work, mate. ;)
so far I watched unity's course, watched toooo many tutorials on youtube and wasted time , went to reddit and even Stack Overflow TRUST me you are the only one who can EXPLAIN CODE for us to UNDERSTAND.
Thanks for the video bro. I began to make my own game before one month ago. I was having issue with jump animation, but with your video I found where I need to fix 👍 after 3 years it helped me :)
Video starts: you need to upload sprite from unity assets Me: draw my own character and draw animations :D btw good video i was watching after year and it's still helpful
I've only made a Tic Tac Toe game in C before. But, this is my first ever proper Indie game with custom made sprites and animations and I have to say, thank you so much! All of it works real butter smooth.
You are the best teacher ❤I love your teaching skills and style😊 please don't apologise for explaining 🙏 it helps us a lot. You are the best and help me understand the programs and don't say me to just memorize it. This makes your videos stand out from the rest. Please remain like this. You are way underrated compares to your skill level. Don't lose hope because I know that one day you will surely reach a million subscribers ❤🙂🥰🤓👍
I think it's incredible that not only did you make a tutorial that explains everything and is easy to understand even with minimal prior programming knowledge, but you're still responding to people in the comments about it! I do have one question myself: I plan to have both walking and running in my game. Right now, run is set to Z (although I'm probably going to change that later down the line.) If I wanted a different animation to play while running, how would I adjust the argument to check for if the run key is being held down, so I have the run animation for running and the walk animation for walking?
Thanks a lot for the praise! I think in this case you can try something like this: //Set animator parameters if (horizontalInput == 0) { anim.SetBool("run", false); anim.SetBool("walk", false); } else { if (Input.GetKey(KeyCode.Z)) anim.SetBool("run", true); else anim.SetBool("walk", true); } Obviously this needs to replace the current line 31 that manages the animator run bool. You will also need to create a new bool parameter called walk in the animator and a new walk animation that triggers when walk is true.
It's kinda funny how I don't have to do most of this because 1: I make my own sprites 2: The graphics of the game I started making as a first project are extremely simple, the player is literally a rectangle with a circle in the middle
Hey, I got a problem. My hero doesn't go from Jump animation back to Idle. AFter the first fall it stays in last jump position and it doesn't change to idle or Run. The character only flip right left.
I have just finished the jump code but my character is stuck in the jump animation when I'm on the ground and won't allow me to jump. What did I do wrong?
This helped me alot but i had one problem that I am stuck on, when I play the game, when I land, I go into the jumping animation and its just stuck there
I really really wish that was the way i started this whole unity tutorial instead of looking up youtube how to do a certain feature and then the feature i learn bugs out another feature then i look up how to fix it and OH man its such a headache but this is the right way to learn atleast in the beigining plus you explained everything very well and you didnt leave a thing unexplained and i appreciated it from the start to finish even though i knew alot of the stuff you already explained
This video series is excellent. You say -oh it is 20 min ı'll finish it in like 30 min but it is soo intense on knowledge you finish it after 1 hour :D
hey, just wondering how do you get the different colours for the different parts of the C# code in visual studio? mine has all the standard stuff, but not vectors, 'Input', etc.
Hey, I don't know if you'll see this but, I'm stuck on the running part. When I play the game the character won't transition between the idle and running animations. On top of that my character will default to facing left even after I just got done tapping the right arrow. Please help
yes. same here. YT channel plz reply edit.. hey brooo i hope this helps you in (else if) line.. we have to use (horizontalInput < -0.01f) instead of (horizontalInput < 0.01f) 😄