How to Make a Game - Unity Beginner Tutorial
• Make a Game & Learn To... --- UPDATED FOR UNITY 2023
game.courses/mp/ - Multiplayer Mastery Course - Open NOW
Learn how to make a video game in Unity. This tutorial is for anyone, even a complete beginner! We'll go through the entire process of building a game in Unity.
0:00 - #0 - Welcome
1:09 - #1 - Installation
4:33 - #2 - Project Creation
10:06 - #3 - Sprites
13:57 - #4 - Importing Art [opengameart.org]
20:37 - #5 - Animation [Animator vs Animation]
27:08 - #6 - Background art [ the mountain]
34:55 - #7 - Physics [Rigidbody2d]
40:58 - #8 - Coding [Bird.cs]
58:38 - #9 - Dragging [OnMouseDrag]
1:10:26 - #10 - Launching [AddForce]
1:46:12 - #11 - Obstacles [Crates]
2:10:01- #12 - Indicator [LineRenderer]
2:15:55 - #13 - Camera Controller [CineMachine]
2:23:34 - #14 - Enemy [Enemy.cs]
2:34:28 - #15 - Particles [clouds]
2:41:41 - #16 - Prefabs [Prefab System]
2:48:48 - #17 - Levels [LevelController]
3:03:30 - #18 - The Followup
Stuck? Problem? The answer is probably here in the FAQ - • How to Learn Game Dev?...
More Info (and downloads): game.courses/make-a-game?ref=27
Join the group: unity3d.group
Patreon: / unity3dcollege
Join My Game Programmer Course: game.courses/programmer?ref=27
unity3d tutorial unity 2d
Dude has less adds in a 3 hour vid than most yt vids 10 minute long to not interrupt our learning. Respect
r e s p e c
just get an ad blocker and stop complaining
What ads? :D
QUADTHOSE crazy how he was doing the opposite of complaining
I saw a lot of ads but still it was a really useful video
Mom: You cant download angry birds Me: Fine ill make my own
Angry Birds Rules
someone help me out please, i tried to test the game and for some reason in the part where it usually just says "sample", their were 2 "mini tabs" that said sample switching between eachother really fast and im not sure what i did wrong. i also cant tap or drag the screen when it does that in game mode.
sub to MasterJellyBean
@@au_Jellyif u want people 2 sub to you then go to an apropiate comment section.
@@PedroBastozz sorry but i dont know what u mean
Who else is back after months of coding cringing at how lost we were tryna get these simple codes 😅 Thank you jason
Dude I can’t even code a site yet
I can't say how much I appreciate that there aren't any ads
hello can anbody type send me me the code after he soes that rese after 1o x 10 y pls
I got 3 ads, but yeah, that’s very little for a 3 hour vid
I cannot express how important this tutorial has been for me. I almost gave up creating because the Unity tutorials were full of false endings and missing steps, with little regard for actual learning. Your teaching is complete and sympathetic, understanding that some steps may be obvious or automatic to you, but still need to be explained to new people. I am going to keep making games because of you. Thank you so much.
Same
same (same gang)
Same)
Same
same
and then... he realized that he wasn't recording
XD And fusterating.
isnt this common now adays
nice
@Banana Le labrador and then he chop-chop his beard
Any competent videographer assures they're recording.
Hello Jason , I'm a game developer and somewhere 2 years ago I watched this video when I only started. For a unknown reason , whenever I click on KZhead from my chrome homepage , it automatically redirects me to this video. and whenever it happens , I start my day with "Hey there , today you're gonna make a game." every. single. day. Thank you for aggressively manipulating my sub conscious daily into mistakenly succeeding in a hi-tech industry
Jason, as a fellow teacher, I have to commend you on your teaching skills. I am in the middle of watching this video, but I had to stop and give you some props. Even though I am not an absolute beginner, there are things you have covered in this video that I have never really known about, so thanks for that. I fully enjoy your videos. Mil gracias!
Awesome guidance and inspiration, Jason!!
as the days go by, Jason is looking more and more like Gandalf. I like where this is going...
Gandalf the grey or Gandalf the white? The distinction is important
hefhef54321 the grey of course!
At first I thought"Why is Dan Harman teaching game development"
He's nearing his final form.
Haha
When you are implementing arrow at 02:00 Jason forgot to show that needs to be: Line Renderer > Texture Mode > Tile !!! Other that this it is just a perfect tut :) Thanks Jason...
Perfect. That's the only problem I ran into this tutorial as well.
Damn, was looking for that! Problem solved!
Thanks so much for posting this! Only issue I ran into during this entire tute so far!
THANK YOU MY MAN
Thx! also how come he has an object called arrowright, didnt see any stpes for it. I still got it to work but am puzzled where that came from??? thx
Greatly appreciate this. Only tutorial I've ever been able to follow all the way through and feel like I both accomplished something I've always wanted to, AND learned a ton of useful information. Thank you so much.
Hey Jason, I am about half way through the video and I am enjoying it so much! I have always been interested in learning how to program and make games and you are great at teaching it. Thank you so much for the tutorial and I hope you make more videos like these in the future!
this is my first time watching a whole 3 hours of content straight without getting bored. thanks alot Jason keep it up
Me too, I was doing things along the video, really learned a lot about how to use game engine
Exactly
YEP ME TOO
Not me, I watched endgame
this was the longest video which i saw in my entire life!
To everyone struggling with the arrow being too big and stretched out when doing the "Line Renderer". You need to go and change the texture mode to "Tile" instead of "Stretch" and then you can change the width to make it smaller.
Thanks dude!!
Bruh... This is that sauce of a comment. I love you
life savior thanks
Pin this comment.
My Hero
I really appreciate that you not only tell people what to do, but also why they should do it, and what it looks like if they do it wrong. I feel like the "why" is missing from so many lessons and tutorials, and with something as tricky as game creation obviously is, that "why" is crucial. Much thanks for sliding me into Unity about as smoothly as an utter noob like me can manage.
Man this is gold, I've watched and paid for many unity lessons and this is so much better than all other info I have came across, thank you so much man!!
Most comprehensive teacher I've encountered! great lessons.
someone help me out please, i tried to test the game and for some reason in the part where it usually just says "sample", their were 2 "mini tabs" that said sample switching between eachother really fast and im not sure what i did wrong. i also cant tap or drag the screen when it does that in game mode.
@@darkzombie1234 Similar thing happened to me, if you haven't resolved it I believe this is what it was. The starting position of your GreenBird got moved to a starting position greater than 10 or -10 on the x or y position. The Script is constantly triggering a reset when the position value exceeds 10 or -10, so as soon as you hit play it is stuck in a loop resetting, getting tripped, and so on over and over etc. Hope that helps, and resolves it.
hello can anbody type send me me the code after he soes that rese after 1o x 10 y pls
@@dered806 hello can anbody type send me me the code after he soes that rese after 1o x 10 y pls
I am so sad that I am not one of the 11 millions fans on this video. Perhaps I am an idiot.
I finished the game, made another 2 levels and an End screen/level. My kids couldn't wait to play the game, so i let them... The youngest pulled the bird to the right and killed all enemys without letting the mouse go lol "Look daddy its glitchy..." /facepalm
But thanks for uploading Jason. Forgot to mention that ur awesome!
@@DonCashbro ok? i guess Edit dis is me a long time ago sorry :P
Average DH 😐
Try to set a limit for the movement of the bird while the mouse button is still pressed. You can use the _initialPosition minus the current mouse position and check if it is greater than fx 2 if it return true then stop changing the bird position. Make sure to you have 2 separated if statement one for the x-axis and one for the y-axis. Hope that can help you to keep developing your game for your kids
@@crazy-boy6143 could you post an example script of this :D ?
This may be the best tutorial I have ever followed along to in any field. Easy to follow, no awkward jumps, enough knowledge to make things understandable without overwhelming the student, good pace and simple but challenging enough to be engaging.
I love this man patience of how he explains everything from scratch when he knows all the big stuff, where I get frustrated on some compiler problems lol
Speechless.. Amazing tutorial, very patient doing everything, nothing was rushed, can't wait to go ahead and do it myself. Brilliant job Jason, THANK YOU SO VERY MUCH! Keep up the fantastic job you're doing with this channel (: (: (:
I'm 12 and wanted to start learning how to code, in hopes of making my own game one day. This tutorial was incredibly helpful and easy to follow! Thank you Jason! I wish you were my school teacher.
@Jeer hi! I’m twelve too and a I am also very excited to start making video games! As well
@@vips9097 Hi im 12 too and im also exidet!xD
Lol twelve gang
Vips909 excited*
I’m 15 and just started this if you start at 12 you should be great at programming by the time you are my age
Wow, this helped a ton for my first Unity game. Other instructors just assume you know what the hell things are, where to go or have things configured already in a different manner. Thank you so much on also showing common mistakes or alternative methods of doing things.
i would like to just say thank you you spent 3 hours straight teaching us how to use unity and sir i would just say i appreciate that dedication this is not something you have to do yet you have done and i can say for the thousand of us who watched this fully to be able to make our indie games thank you really thank you
this guy is doing better job than many paid tutorials. love the yellow highlight behind the mouse pointer, makes it easy to follow along. the sound is great. keep it going bro.
2:48:48 (saving for later for myself) love the vid man! You can see you really are here to educate. Minimal ads. Long and full explanations. ❤️
Nice tutorial !! I never tried any game development, despite coding since years in java and c. Its really fun to get into unity for me. I think I found a new passion right here. Gonna check out some other stuff from you ! Great job!
Dude...you are amazing. Did so many tutorials and they barely explained anything. You're the first one to explain everything so beginners can actually understand. Greatly appreciate your work.
I love how the video was written out, you don't act like you know everything in the world, and encourage us to keep going. And you never use complicated words to explain other words, very easy to listen to and to learn. Keep up the good work
It's been about 4 years since I've wrote code for a game project at school... This video gave me chills, refreshed my memory on alot of the terms and statements.. Thank you for this video
I recently got a new laptop and wanted to try my hand at making little games. I have minimal coding experience and I picked the Unity engine based purely on some quick google research and recognizing it from several other games. This tutorial has been so so helpful in not only learning to use Unity but also learning to code in Visual Studios Thank you so much. I'm having a ton of fun with this
Man you don't even know how much you helped me, i tried to start making games, and i've started by watching tutorials how to make 2d platformer, i did make the game, but it was all copy and paste from the video, and i didn't understand anything, and i almost gave up on making games. Your video popped up on my yt and i thought why not give it another go, and thanks to you i now understand the basics of unity and i can finally start from somewhere. Thank you very much.
When you see someone that puts a 3 good hours of tutorial for free, just click and disable that add block
:)
@@TreacherousDev he said that you should disable the add blocker, not turn it on
@@zoozoocow123 whoops read that incorrectly. ty :D
When he said "What's going on Jason, you lied to me," I felt called out
What have you done, Jason?
Oof
@@jbdbibbaerman8071 idk
This is a great tutorial, explained step by step, even in those details that would be overlooked by other teachers. It's giving me the motivation to learn programming - and it's all thanks to teachers like Jason - even tho I think I still have to learn some fundamentals to really understand what's going on beneath the hood, cause some parts, even in a beginner tutorial, still seem obscure to me. So glad I found this channel!
This is the best tutorial I've ever seen. Not the best Unity tutorial, the best tutorial period. Concise, thorough, and easy to follow.
This is THE BEST tutorial on Unity I have ever seen!
hello can anbody type send me me the code after he soes that rese after 1o x 10 y pls
there are WAY better ones. def don't pay this guy $15,000 when there are plenty better ones for free or cheaper
This was the best tutorial for total beginner with Unity I've yet found anywhere! Great job! It would have been nice to include some code for preventing the player to move the bird too far away from the starting point though. Now you can just grab the bird and drag it across the screen to destroy the enemies with just holding the mouse down. It would be perfect if you'd make lesson 2 to continue this game to develop further! It could even be 10hours and I would still watch and follow it. Your way of explaining things is VERY enjoying to watch and listen. Thank you again!
You made this so simple and fun! Honestly the most I have learned out of all the other coding videos I have watched! Subscribed :)
This is an amazing tutorial, and I would recommend it for anyone that wants to learn Unity and Coding and Designing Games. I appreciate that everything is clearly explained and each likely possible error is shown and explained and fixed. Using this information, you could create any number of games and any manner of games. I appreciate the pacing, the detail, and the lesson on good coding practices so your scripts don't look like a nightmare of spaghetti. If you want to learn this stuff in a professional manner, this is the guy to watch.
Thank you so much, Jason. I will definitely check out your course, your content is great and very informative!
Thanks dude, this is really THE BEST Tutorial on YT. You may say it goes too long, but if you look whats the end result... Just thank you for teaching me Untiy!
literally the best tutorial i have found. I needed to get a headstart on game development for the next semester in college and this helped alot. Thank you sooo much!!!! The explanations were very clear and I didn"t feel confused at all
Love this beginner guide! As someone just starting to get into scripting and game dev this was super helpful in learning some of the basics. Def will check out some of your other videos.
I don't comment often on videos. But since you did such a WONDERFUL job explaining and showing how you did everything, I applaud you. Thank you for the information and hope you have a great day if you read this :)
Around 2:07:30: If you're having trouble with the line showing just one weird messed up arrow (Specifically on 2020.3.5f1 for me), set the "Texture Mode" to "Tile" in the Green bird Line renderer component.
thx man
thx a lot
Thanks, I was having an issue with that :) :) :)
thank you
Thanks a lot!
I want to thank you for these videos it's been something I've been interested in for years but never felt like it was achievable on a personal level but you're made it feel like it's doable. Thank you for that.
No cap highkey you're one of the most underrated treachery I've ever found on youtube. Yes Brackeys is amazing and Sabastian is a legend. But your explanation is like that of a PHD professor. Thank you sir!.
If u have problem with Viusal studio "No intellisense" dont show options etc. Close visual studio, go to unity EDIT ----> Preferences ---> External Tools ----> "External Sctript Editor" change from "Open by file extension" to "Visual studio 2019 (comunity)" it works for me.
Life saver.
hero
@@joshua_bluemoon8683 soo u dont have problem, 😑😑 right?
Thank you :)
It didn't work for me. Visual studio 2019 never popped up in that tab and I went through my files and the application wasn't there. Not your fault anyways. \: Edit: I got it (:
I was on game design course in college. I learnt more programming here after 2nd time watching, than myh entire year at school
I have been wanting to learn how to make games ever since I was a little kid. I took the "hard way" of college coding classes, art classes, design theroy, and all of it just killed the joy of it all. For a long time I didnt even play games anymore. Just recently I got the itch to pick it all back up agian and I came across your videoes along with other great devs. After all this time i can honestly say that i have made a game. Im so beyond excited and happy at this very moment i want to keep going but im very tired after doing this all in one sitting. But im so so so ready for more! Thanks Jason.
The video that started my game dev journey two years ago. Thanks Jason for being awsome !!!!
I love videos like this, yea, it's long, but... I don't know, but this is one of the best tutorials i watched
This was a very good tutorial. Did all 3 hours in one sitting and not once did i find myself confused or unsure on what am i doing
For those interested, in both Visual Studio and VSCode, placing the cursor on a line or selecting a group of lines and holding alt and using the up/down arrows moves the code without having to cut and paste it. Great Videos btw, thanks!
I've watched many Unity Tutorials, this is the first one I've finished. This guy is amazing
One of the best tutorials I've watched, extremely well explained, extremely easy to follow along, and shows a lot of features and great potential to use in very simple ways. Thank you for keeping things simple to understand and for showing very useful functionality.
@@hafsaraza8853 check the boundaries set at 1:23:28, you may need to extend them as they are too small at first and makes your game restart
@@hafsaraza8853 to stop the bird from falling, turn off gravity from it, then switch it on from the code. I'll try to find that part on the tutorial and give you the time of the video
@@hafsaraza8853 To fix the issue with bird falling down, check the below parts of the tutorial: From 1:10:28 to 1:10:54: Gravity is set to 0. From 1:19:40 to 1:20:13: Gravity is set to 1 again from script.
@@hafsaraza8853 Check part 9: 58:42. That should help you to drag the bird. If you don't manage post your code below so we'll take a look.
I'm stoked to follow this tutorial. I think these guided projects are the absolute best way to learn
I'm having an issue that I think is probably an easy fix, maybe you could help? When I'm writing the Bird script, described around 53:07 the 'OnMouseDown' command is not suggested, and when I type it myself it is yellow (instead of your blue). I am certain I am spelling everything correctly. Even though we have identically scripts, when I try to run it, Unity tells me I must fix compiler errors. If the issue is still unclear, I can easily upload a short video to youtube so you can see exactly what I mean.
I cannot believe how much time I wasted instead of just.... looking to the community focused on the same exact project. Answer in comment section by DEAD MUSIC, but I will copy it here on the off chance someone is seeing this instead of their comment first somehow.. 'TO ANYBODY WHO STARTS VISUAL STUDIO FOR THE 1ST TIME AND THE MONOBEHAVIOUR IS WHITE NOT BLUE GO TO THE UNITY PROJECT PAGE AND THEN CLICK ON EDIT THEN PREFERENCE TOOLS THEN EXTERNAL TOOL AND THE FIRST BAR SET IT TO VISUAL STUDIOS.' I knew it had to be something simple like that haha
Finally finished. So fun to learn. Really enjoyed the explanations and felt (perhaps naively) like I really understood everything I was doing. Only a few spots tripped me up, the line renderer was never actually looping, just stretching - even after following the steps of that section. Not sure what exactly I goofed. Thanks so much for giving me the tools to start messing around with it myself! I know a video like this must have taken forever, but it was a fantastic tool and I'm sure I'll reference it often.
"A 10 yr old could understand this" my brain: K A R L S O N V I B E Edit: don't go into the comments, its a bunch of kids telling everybody their age because they didn't get the joke
someone help me out please, i tried to test the game and for some reason in the part where it usually just says "sample", their were 2 "mini tabs" that said sample switching between eachother really fast and im not sure what i did wrong. i also cant tap or drag the screen when it does that in game mode.
I appreciate this video so much! It's very informative compared to all the other videos. And it really breaks down the basics and makes me understand why it is I do so and so. I don't mind it being 3 hours long because I understand the content!! Thank you for this
I'm from Turkey and even with Turkish tutorials they can not teach that well. I am very grateful for you and if I will be a game developer and make something out of it, I will not forget you man! Thank you so so much for this tutorial.
Thank you so much for this Course, Jason. The Coding part alone (8-10) is easily $20 but this is free! I really appreciate that you used your time to teach all of us and make all the people, including me, happy. Hats off to you man.
Excuse me, rohitinc. Can you fix bug for me? tks so much
😐
Thank you for this. I've only been looking into 3D unity videos so this was quite interesting to watch.
Thanks for the great tutorial! :D I'm trying to learn how to use unity and this has gave me a very solid foundation because you explained a wide array of interesting topics in detail
This is the best ever tutorial. I could follow each and every steps. I was about to give up on Unity, then I found this video. Now I don't wanna stop. Thank you soo much sir, for this video.
I just wanted to say, i've been putting off learning Unity for probably about a year now because of how daunting it is coming in with zero experience but your videos are a massive help and make it incredibly more friendly
How has this been going for you? Im in the same situation as you were right now
@@eriklarson6362 Hey bro can u give me some advice on what my next moves should be after watching this video
This is amazing how you take 3 hours of you time and make it a video with no ads :)
Jason this was a great very detailed step by step tutorial for an easy game that was easy to follow! Thank you so much!
I have more than 6 years of professional development in other areas and, as a self-learner, I just couldn’t move slow, I always had to keep rushing tutorials and get rid of the feeling of being dumb. I really can’t tell how amazing it was to be carried nice and slow, properly being introduced to every concept and setting without ever feeling like the noob I am (first time getting hands on with programming games ever). This is absolutely awesome and I really appreciate having this video available.
Sweet. Just finished your June 2019 2D course. Gonna do this one as well
Every game I make I’m just going to watch this guy his so easy to understand
hello can anbody type send me me the code after he soes that rese after 1o x 10 y pls
Almost watched it till the end, but will comment now, great tutorial, very detailed and alive, with great explanations not only on what we need to do, but also on things that could go wrong and how to fix them.
Thank you for sharing this very simple and clear tutorial. When I first opened Unity I thought it looked a bit complicated but you've made it look very easy.
"A 10 yr old could understand this" my brain: *K A R L S O N V I B E* Edit: don't go into the comments, its a bunch of kids telling everybody their age because they didn't get the joke
what do that mean?
@@yuanqiao4368 i have the iq of a 10 yr old
dani
This is sad xD ... *FeelingShared*
I’m 10 already did it
Thank you sir, I legit didn't know anything about game creation u helped me so much. :)
not even 5 minutes in and i can already tell this is a very well put together video
I've been using unity for years at this point and still found this video quite enjoyable to watch
video: _lets hit play and see what he does_ me: _ffft hes gonna fly duh_ also me: _does it and starts screaming like a little girl_ "OMG HES FLYING"
he turns red for me but my boy doesnt move, annoying with no error markers lol
Had no experience with Unity before, literally now know more than enough for myself. Thanks a lot, appreciated!
Keep at it. Within weeks you can do some crazy amazing stuff :)
Thank you for taking the time to make this. It's exactly what I was looking for as a beginner. Can't wait to jump in!
two years late rand this is still helpful. i learn so much better following along and actually doing it too so i love that you chose assets that are free and easy to get. thanks for all you do!
I'm 25 and am working through this with with my eleven year old little brother. Absolutely fantastic content. Thank you
Very welcome!
This video is the best one I’ve seen thank you for helping me code and make a game😎😀
We worked around one year and a half on our game ... at first, it was hard but as time goes by it became easier... unity helped a lot!
Jason - this was excellent video and very helpful. Plan to dig deeper into unity - thanks for taking the time for making the video.
I think you've cut out of the video the part where you change Texture mode from Strech to Tile (in line reenderer) :)
This saved my sanity
thanks!
Thanks a lot, you save my day!!
Thanks, I was struggling so bad with this trying to figure it out.
Upvote to save another rookie!
0:22 24 year old me: Oh okay, good.
ahahaha same right here
Yup, feel ya
FYI I actually am 10 years old
@@ahmedzarin2247 get out of youtube, go back to youtube kids
me 12 years old with 2 braincells:oh ok
Was confused at first looking at unity, so I came looking for a video and got this. Very helpful, thank you so much
I am 63 and never coded or programmed, sat all afternoon watching and following along. I now have the buzz to get into this stuff as this video was very easy to follow, Thankyou for that
you rock. thank you for your time I'm a beginner and everything was explained clearly 👍👍👍
very welcome! :)
I fell asleep watching someone talking about a game they made and found this in my watch history.
Thanks for making this video, super easy to follow, perfect pace and thorough! I've been following along doing a different game using each of the techniques you described, you made it super easy!
56:22 how did you get the .color to work
I just reached 1/3 way through and I've got to say I'm having a blast, I went into this hating coding from school but you made it really easy and fun, I'm really excited to start making my own games
As React / JS developer I would like to thank you for clarifying stuff to me as a relatively new guy to C#/Unity. I have done some projects before and took some tutorials to c# crash course, but also wanted a 'baby' introduction to check whether my understanding of the language and editor, especially coming from JS env, is correct :) Subscribed!
STUPID he works so hard not like u just giving a hat comment
*hate
sorry wrong person i really did not wanted to giveu the comment
@@zaidmohmmedtayabali7081 LOL XDDDDDDDDDDD
Thanks for an amazing tutorial! It really helped me, and one of the best things here is that you didn't just tell us what to write, but you actually explained what every line of code actually does, but still, I have a small question. How did you make your background loop?
I'm new to this as well, and am missing this also. What I did was select the background, go to Sprite Renderer, and set Draw mode to tiled. I then set size to 100. I'm sure you can use a smaller number. I noticed the enemies could fall out of world because the collision for the background had not also tiled. I went to Box Collider 2D and checked Auto tiling. Hope that helps.
Ahmazing teaching, explanations for beginners, and pacing - thanks for your time and sharing!
Best unity video i've watched so far!!! My first game that works (relatively)!😀
how to pirate angrybirds step one: Make angrybirds
Can't imagine this
alternate step 1: watch this video
watched the entire video and my butt hurts. literally I learned sooo much!! thank you!! I've been looking for good tutorials like this for the last few days!!
Never had anyone explain in the detail you are! Thanks alot. It's never just "do this then this then this" it's always do this because... then do this because... - really gives future skills and knowledge. Thanks!
Dude....i learned so much stuff from just this 3 hr video it's nuts. Thank you so much.