Learn C# with these 9 LINES OF CODE - Unity Tutorial!

2024 ж. 24 Мам.
335 366 Рет қаралды

Xsolla: xsolla.pro/Blackthornprod
------------------------
Olobollo on Steam: store.steampowered.com/app/15...
------------------------
0:00 - Intro
0:50 - Xsolla Promo
1:24 - Variables
4:17 - GetComponent()
6:08 - Instantiate()
7:52 - Destroy()
9:27 - Loops
13:35 - If/else
16:04 - Input.GetAxisRaw()
18:59 - Vector2.MoveTowards()
21:00 - OnTriggerEnter2D()

Пікірлер
  • As a complete beginner that's watched a couple of 1+ hour tutorials on c#, this 25 minute tutorial was without a doubt the best. Learned so much. Thank you!

    @Memphy@Memphy2 жыл бұрын
    • Almost every tutorial youtube gives me is outdated and does not work

      @Ah-wb5le@Ah-wb5le2 жыл бұрын
    • @@Ah-wb5le it still works, all of it

      @stanleyeasthope1329@stanleyeasthope13292 жыл бұрын
    • @@stanleyeasthope1329 maybe it's settings in unity or maybe it's cause I'm using a newer version of unity idk all I know is that a good amount of the code from other tutorials didn't work for me

      @Ah-wb5le@Ah-wb5le2 жыл бұрын
    • @@Ah-wb5le Then check your code. I have followed a ton of tutorials (including old ones) and it always worked. + that I dont think C# even changes

      @amps9978@amps99782 жыл бұрын
    • @@Ah-wb5le same Here I cant tell if I'm doing something wrong or what. Did u figure out how to fix it for yourself yet ?

      @ruairicostin9442@ruairicostin94422 жыл бұрын
  • people always say "just read the unity documentation" but as a person with NO coding background whatsoever, it's hard af to understand. your video is so good and easily understandable. thank you

    @TheXeeman@TheXeeman3 ай бұрын
  • I suffered for 1 year in c# and when I finally learned c# I found this. Give my 1 year back

    @vanshshah8722@vanshshah87222 жыл бұрын
    • same 😔

      @alifarhadali5580@alifarhadali55802 жыл бұрын
    • Good i found it early on.

      @_GhostMiner@_GhostMiner2 жыл бұрын
    • @@_GhostMiner good luck for your journey

      @vanshshah8722@vanshshah87222 жыл бұрын
    • @Bruno Piazza in tutorial hell

      @vanshshah8722@vanshshah87222 жыл бұрын
    • @Bruno Piazza by 75884 tutorials

      @vanshshah8722@vanshshah87222 жыл бұрын
  • Me after watching the whole video: You know, I'm something of a Brackeys myself

    @damnitseven@damnitseven2 жыл бұрын
    • I miss Brackeys 😔

      @kvvoya@kvvoya2 жыл бұрын
    • @@kvvoya same pal, same

      @clumsycaden5708@clumsycaden57082 жыл бұрын
    • @@kvvoya me too :(

      @jared4080@jared40802 жыл бұрын
    • whaaaa, sob, sob

      @tanercoder1915@tanercoder19152 жыл бұрын
    • @@kvvoya he will stay in my heart forever...

      @damnitseven@damnitseven2 жыл бұрын
  • First I thought it's a click bait, but absolutley not. This will help many people. I like especially how you start from basics and step by step end at enemy collision detection :D

    @Kaikaku@Kaikaku2 жыл бұрын
    • Nice profile pic

      @knos2938@knos29382 жыл бұрын
    • lol saame !!! but its beyond the opposite of clickbait lol!

      @EpicBunty@EpicBunty2 жыл бұрын
    • 99th like haha yes

      @catsEeter@catsEeter2 жыл бұрын
  • My wife and I have begun developing games (I was in game design in school but remember very little from nearly 2 decades ago), and a problem we both have is we're artist, thus very visual learners. While working on a piece of her game, she was getting frustrated with the fact she might have to learn a little bit of C# in order to move a character with isometric movement that she would wind up crying having to look at the code at all. I woke her up at 4 AM this morning, asking her if she wanted to learn C# in 9 lines of code with your video, and she broke down crying again, but because she understood absolutely everything. She's currently exercising and is ready to LUNGE into working with C#. I cannot explain to how how much this helped us, and we are now permanent subscribers and are binging everything on your channel. So thank you SO much.

    @Rattlecat@Rattlecat Жыл бұрын
    • @@brkenppt2222 fr

      @catherineinwere1718@catherineinwere1718 Жыл бұрын
    • your art seems very cool!

      @tijpetx3080@tijpetx3080 Жыл бұрын
    • Wow, this story is…

      @CSchwan58273@CSchwan58273 Жыл бұрын
    • This is so sweet, I hope everything is going well for you guys!

      @bensabyss@bensabyss4 ай бұрын
    • Your wife cries a lot

      @yomaam12345@yomaam123452 ай бұрын
  • This was amazing! Please do a part 2!

    @bupp291@bupp2912 жыл бұрын
    • Can't do a part 2. Because there are only 9 lines of code 🤣

      @Labyrnthdom@Labyrnthdom Жыл бұрын
    • I aggree, like a more advanced list that we probably later will use when we can walk instead of crawl... There is alot of testing and reading and I love it. We will still get into alot of troubled evenings and nights I think...

      @JakeSimmer@JakeSimmer11 ай бұрын
  • I think, I think you did it. You made the ultimate Unity tutorial. This is simple and amazing, never seen anything better!

    @Holsp@Holsp Жыл бұрын
  • These terms were soooooo hard for me when I started but now they seems to be very easy

    @giant6706@giant67062 жыл бұрын
  • This guy has taught more than enough content in 25 mins, which huge bootcamp courses and semesters of university education fell short in teaching !!

    @shekhariyer3819@shekhariyer38192 жыл бұрын
  • I was thinking of creating a list to remember all the important codes, but you have already done that for me =). The most helpful video I have seen in a while.

    @hirasinghdhami4589@hirasinghdhami45892 жыл бұрын
  • I've seen vectors used in so many tutorials but this finally made them make sense with the movement and input explanation. Thanks so much very well done!

    @eksquirrel1879@eksquirrel1879 Жыл бұрын
  • It's actually crazy how well this video explained to me how C# works. It's obviously not everything, but it's basically one of the best jumping off points for code I've ever seen. Well done!

    @IbraheemM98@IbraheemM98 Жыл бұрын
  • I have been learning for a little over a year and this video would of been so helpful at the beginning. Its a great overview of the interaction of objects and how the system communicates which is what I did not understand I the beginning. Amazing video im sure this will help many people grasp these concepts better.

    @3dartninja@3dartninja2 жыл бұрын
  • This is one of the most helpful C# tutorials I have seen! an absolute blessing for this type of content

    @zeedamn2804@zeedamn28042 жыл бұрын
  • Starting out with learning C#, this is exactly the video I needed to watch and be able to come back to. There are some things that are summed up, but the core mechanics I needed to learn are here. Thank you!

    @fifehunter@fifehunter2 жыл бұрын
  • Great tutorial, absolute beginner stuff and you kept it on that level. It was very easy to understand and I always understood what everything meant. Unlike some other tutorials which might not explain everything or are trying to teach some way too complicated things in a beginner level tutorial. Thanks a lot!

    @Wilzzub0b@Wilzzub0b2 жыл бұрын
  • Every time i watched a tutorial on C# or any coding language, i just couldn't understand every line because i didn't knew which one was important so i tried to remember them all... The fact that u really show the mosts important things to remember when we are starting makes this video a pure masterpiece, and every coding language should have this kind of tutorial. Donc merci beaucoup à toi ();

    @inflamass9139@inflamass913910 ай бұрын
  • Great video, thank you for putting this together! Just getting into Unity, about 10 hours in, and this clears up a lot. Explains a lot of the basics with a direct example to see it in action.

    @Jackbrick101@Jackbrick1012 жыл бұрын
  • I literally just started using Unity a couple of days ago, and already this has answered so many questions! This was great for introducing me to these so that I'll know what to look for and use, plus the explanations here are very clear. Thank you!

    @robokraken5904@robokraken5904 Жыл бұрын
  • This tutorial is buetiful, much much better than all other ones I've seen. You explained everything three times: first time you said what the line does and how to write the syntax for it, you showed how to write it a second time when you showed yourself applying it to an actual project, and then you also showed the result. By far the best tutorial I've seen.

    @PJ-qx6en@PJ-qx6en Жыл бұрын
  • Just started learning Unity C#. Absolutely the best tutorial I have ever watched. still didn't learn a thing from the others, but this makes it all clear.

    @jamesburks2796@jamesburks27962 жыл бұрын
  • Nicely done. This video is a perfect example of how something can seem too complicated or daunting to understand, when really it isn't, it's very simple, people just need a talented teacher to educate them on how it all works. You made this very simple and approachable with clearly displayed (and colour co-ordinated!) code and examples. Way too many other people try to teach but end up making something seem more complicated than it actually is.

    @KotCR@KotCR Жыл бұрын
  • This is such an amazing tutorial. The way you explained the for loops and the unity position function is so great!

    @EnderEclipz@EnderEclipz Жыл бұрын
  • dude!!! this video is freaking helpful. just watching this makes me realize ways to write code to things i didnt think i could do before!

    @thomaswalsh4882@thomaswalsh48822 жыл бұрын
  • I can't thank you enough! All the other tutorials just tell you what to type but don't tell you what they do. This will help my journey so much!

    @synetic2803@synetic28032 жыл бұрын
  • This is probably one if not the best tutorial for C# in Unity. Well done, seriously.

    @mxjokereh@mxjokereh Жыл бұрын
  • This is one of the most informative, short video I have seen yet in regards to Unity and C#. Great work!

    @AlindaeliaGamez@AlindaeliaGamez Жыл бұрын
  • Today I learned: this video's clickbait title was NOT clickbait at all...! SUPERB tutorial and discussion. LOADS of value here. Fantastic!

    @markj702@markj702 Жыл бұрын
  • Great starter for beginners! I have a little bit of time with C# and I'll say I would steer away from teaching people to just use public because it shows up in the Unity Editor and start using private and [Serialize Field]. That way you still get the usefulness of seeing your variables inside of the Editor but keeping them safe from mistakes by using public.

    @chosenator8889@chosenator8889 Жыл бұрын
  • Thank you so much for these awesome tutorials Noa, waiting for more!

    @afrasiabmahdy@afrasiabmahdy2 жыл бұрын
  • This got me further than any tutorial i've watched the past three times iv've tried to get into Unity development! Thank you for the great video and wasy to follow instructions. This is now the foundation of my own knowledge base. You're very inspiring, and although i wont make 2D games, the knowledge is for sure suitable to Virtual reality development as well

    @denniskristofferhierhoel948@denniskristofferhierhoel948 Жыл бұрын
  • I really love the way you explain, it's so simple and to the point. You are a lifesaver!

    @Dioyt@Dioyt2 жыл бұрын
  • I'm with everyone else on this.. I just started coding a few weeks ago and in that time I've watched and read tutorials on C# coding without retaining anything. I watched this 25 minute tutorial and I completely understand the code I'm typing. THANK YOU!!

    @aprilchelley@aprilchelley Жыл бұрын
  • Thank you so so so much for a such great tutorial, amazing, you made it very easy to understand to me . You pave the way for anyone wants starting with game development. I need more like this one, please.

    @rashh77@rashh772 жыл бұрын
  • Finally some great video which I can watch on my break at work

    @branidev@branidev2 жыл бұрын
  • this tutorial is exactly what i wanted. important lines of code and examples of what to do with them or how they work in other games. absolutely brilliant

    @kt-bj5yd@kt-bj5yd9 ай бұрын
  • Extremely helpful. Please do more of these :)

    @zorininstinct430@zorininstinct4302 жыл бұрын
  • those 9 videos are going great ! ( nine steps - nice lines) keep going with them

    @zaidmermam2524@zaidmermam25242 жыл бұрын
  • Thanks for this video! I learned more in 3 minutes than in hours of tutorials. This video is a literal goldmine for newbies like myself. I feel like I understand and can code everything you showed by myself after seeing this!

    @BacklogDrifter@BacklogDrifter10 ай бұрын
  • great job at simplifying this while still getting loads of information in a short period of time. super helpful as someone who's new to coding and unity.

    @snb_horizons2877@snb_horizons2877 Жыл бұрын
  • This tutorial is really incredible. Perfectly focused on the point. Impressive! More Unity tutorials like this, PLEASE?!

    @cryelectric@cryelectric9 ай бұрын
  • As someone who just started a game development course which sometimes things go by before you know it so this is good to come back to and re-study so to speak, always been a gamer for my whole life and super interested in the game industry and hopefully in the future make a living from it. This was suuuper helpful so thank you!

    @YourCasualPoster@YourCasualPoster2 жыл бұрын
  • This is the best crash course on game dev in Unity I have seen so far. Thank you for making this video its easy to understand and follow. Just Awesome!

    @bartsworkshop@bartsworkshop9 ай бұрын
  • Awesome dude. You covered pretty much every code we use daily. Keep up the good work.

    @PixelbugStudio@PixelbugStudio2 жыл бұрын
  • wish i saw this vid before learning unity. Easily and clearly explains everything u need to know to get started in a short video, without holding the viewers hand through a whole game tutorial process.

    @p1ngyy@p1ngyy10 ай бұрын
  • This benefited me more than the 4 hour tutorial that i watched prior to this one , thank you so much and keep making such amazing videos

    @midus6374@midus63748 ай бұрын
  • Thank you so much! I rarely comment on tutorials but this was so amazing I couldn't resist!

    @orionstorm8840@orionstorm88404 ай бұрын
  • Great video! Perfect summary of the most useful commands!

    @tadejristic9568@tadejristic95682 жыл бұрын
  • You are doing a great job, helping all these beginners like me out here. Best tutorial video i have ever seen. I just didn't wanted this video to ever end, it helped a lottt. Thanks man 👍

    @mohitag8566@mohitag8566 Жыл бұрын
  • This was a very interesting tutorial and your way of explaining how things worked was perfect and i love that you even did som recaps. Great video!

    @stengrus6486@stengrus64862 жыл бұрын
  • This guy helps so much more then all the other C# youtubers! Thank you!

    @Syvre_@Syvre_2 жыл бұрын
  • As a person who is new to programming, you can't imagine how helpful this was!

    @jenjefette5798@jenjefette5798 Жыл бұрын
  • Yeah, this 25 min video helped me more than hours long tutorials. Great job condensing the information and explaining everything concisely while illustrating it with game clips.

    @Skithiryx7X@Skithiryx7X10 ай бұрын
  • Thank you so muchhhh you don't know how helpful this is for me!!! Seeing this visualized is amazing

    @zhaolabs@zhaolabs2 жыл бұрын
  • Love this Vid! I´m learning so mucho from you, thomasBrush and Brackeys... you guys are. indubitably, doing a lot for the Gamer/IndieDev community!Thx for your time and all the Info. Keep doing this nice stuff! I hope, that some day, I can retribute all this knowledge :D

    @miguelangelcisterna8053@miguelangelcisterna80532 жыл бұрын
  • This was a great video! More of this please!

    @r.gtz.4521@r.gtz.45212 жыл бұрын
  • dude you are a legend been trying to find a start to coding in unity and it has been really confusing as a complete beginner but this video has been an amazing starting point

    @JoeSmith-ke9kx@JoeSmith-ke9kx9 ай бұрын
  • First video I found that actually goes through each one explaining what it's all for, amazing thanks!

    @SiDucky1708@SiDucky1708 Жыл бұрын
  • This was by far the most useful tutorial I have seen on youtube

    @JazzyDragons@JazzyDragons Жыл бұрын
  • This was the best video i've ever seen in KZhead about C# in Unity, thank you!

    @magnus1396@magnus139611 ай бұрын
  • Love it! So helpful! Such a good summary of the basic stuff.

    @mariegrasmeier9499@mariegrasmeier9499 Жыл бұрын
  • This is such a good tutorial, even though i knew most of it i can tell noah does a great job of explaining.

    @DoItNow347@DoItNow3472 жыл бұрын
  • after watching several other tutorials I was confused by certain functions even though I have basic programming skills. thank you so much. this was very helpful.

    @macgeifer8850@macgeifer8850 Жыл бұрын
  • My brain is kinda melting from all the info, but this video is by far the BEST tutorial for beginners so far. Thank you very much!♥

    @pt3012@pt30122 жыл бұрын
  • This tutorial is one of the best for beginners . If you can master these 9 lines of code, you can learn and understand almost everything else.

    @bcd3321@bcd3321 Жыл бұрын
  • This one of the best tutorials I have ever watched, thank you

    @GoatVibez637@GoatVibez6372 ай бұрын
  • If you got a little bit of creativity and some C# knowledge you could piece together an entire basic game with this video. VERY HELPFUL, thanks

    @lavadudestudios380@lavadudestudios3802 жыл бұрын
  • Amazing tutorial! Thanks Blackthornprod!!!

    @edanduarte@edanduarte7 ай бұрын
  • This has put everything iv been learning into perspective and given me some real context about the lines of code iv been using, thanks for this, i found it more than useful!

    @apexdwarf@apexdwarf7 ай бұрын
  • This was incredible. Thank you for this great breakdown!

    @Rob-fi2pe@Rob-fi2pe Жыл бұрын
  • omg thank you for this- you explained things SO MUCH BETTER than the tutorials on Unity's own site

    @sarat6488@sarat64882 жыл бұрын
  • I was using unity tutorials on their learn site, but this is much more precise and to the point. I would recommend using this tutorial as a refresher for unity code. it would be nice if Blackthorn made one for unity 3d as well. Thank you so much Mr. Blackthorn! this was a huge help!

    @adventures7612@adventures7612 Жыл бұрын
    • you can apply the fundamentals of this video to 3d too I think, just maybe there are a certain differences.

      @bagastian3125@bagastian3125 Жыл бұрын
  • with this 25 minutes video alone, this just helps me alot and get me into unity for my future projects, thanks alot man :D

    @Icie145@Icie145 Жыл бұрын
  • THIS WAS THE BEST TUTORIAL EVER this is just what I needed and you explained it really well

    @doodlebugdev6990@doodlebugdev6990 Жыл бұрын
  • Oh my God! this video is wonderful. it's simply the best video I've ever watched on "how to start making games in Unity". Many people teach by typing lines of code without explaining what each word or dot means, they just say what the complete code does and this is literally useless when you want to learn how to do it yourself. your video should be a prerequisite to watch the others. congratulations for the effort and dedication to make this video. + 1 subscriber!

    @DoneCosta@DoneCosta2 жыл бұрын
  • Thank you for this. This is the first tutorial I've found that actually helps me

    @rachelbasten4929@rachelbasten49292 жыл бұрын
  • YOU sir, are Magnificent! This was wildly helpful! I have purchased your game long time ago! love your work! all your content is number one!

    @LeondalePhotographer@LeondalePhotographer Жыл бұрын
  • Best coding tutorial I've seen for game designers by far.

    @elihasty128@elihasty128 Жыл бұрын
  • This paired with GMTK Learning Unity Without Tutorials is a great primer for starting to make small games in Unity. Well done.

    @jeffreyjumisko5165@jeffreyjumisko51652 жыл бұрын
  • Thats the kind of video beginners need! Very good and on point!

    @schurkino@schurkino2 жыл бұрын
  • Nice, and cool short tutorial!

    @dkujo@dkujo2 жыл бұрын
  • Possibly the best beginner-friendly Unity C# guide on the platform.

    @azorailke6057@azorailke60572 жыл бұрын
  • This helped me a lot. I knew nothing about coding until now. keep up the good work!!😄

    @dukerdoge4519@dukerdoge45194 ай бұрын
  • Gorgeous, i made my self notes for every single piece of code. Learned so much, thanks!

    @PowerliftingPodcast@PowerliftingPodcast Жыл бұрын
  • Thank you man! This made so much sense and is what ive been looking for :D

    @connor2094@connor2094 Жыл бұрын
  • Amazing how you made it so easy to understand so much in a short tutorial. You are awesome.

    @prinautospares@prinautospares2 жыл бұрын
  • The video we didn't knew we needed

    @GoedBezig2004@GoedBezig20042 жыл бұрын
  • more videos like this please !! super simple and very helpful! THANK YOU VERY MUCH!!!!

    @Samufilly.rkv13@Samufilly.rkv132 жыл бұрын
  • This helped a ton, since working with the rest of the game engine inside the code was something I didn't really understand before I watched this.

    @NeoFrog582@NeoFrog5825 ай бұрын
  • Best piece of advice you can find in video format for beginners, guys just watch it all and practice those! Great video!

    @hawkgamedev@hawkgamedev Жыл бұрын
  • These seemed so hard at first, and now the way you explained it, it seems very easy, thank you. Would appriciate if there are more tips that ypu would like to give, i am a starter on unity

    @AGamingPlayz@AGamingPlayz2 жыл бұрын
  • Amazing beginner tutorial!! 9 lines to rule them all! thank you

    @mlavinb@mlavinb2 жыл бұрын
  • I don't understand why this video has 200k views ... Its a diamond! Bro no tutorials tell what these Do!!! you are a legend

    @phin-7261@phin-726111 ай бұрын
  • Shout out to Blackthornprod, for being the OG's in the artform of TEACHING. Damn, if i had teachers in high school that could break things down like this for people like me who find theory and studying very very difficult and frustrating, I might have actually learnt a thing or two in class

    @admjadajmd@admjadajmd2 жыл бұрын
  • Great byte size chunks of code well thought out and explained, my boys really enjoyed these please keep them up. (maybe your InstantiateExEmple was both a Exemplar and an Example at the same time, a hybrid Exemple !), so retro, LOL ;D .p.s Love the graphics and anims

    @skippythemagnificent8103@skippythemagnificent81032 жыл бұрын
  • Brooooo this was awesome I swear I learned so much please keep it up!!!

    @GreenifiedXD@GreenifiedXD2 жыл бұрын
  • This video is exactly what I needed. Much appreciated

    @TJSteel75@TJSteel75 Жыл бұрын
  • great tutorial man! Your tutorial was by far the most easiest to understand especially for beginners such as myself

    @101titanium6@101titanium6 Жыл бұрын
  • Great Video! And by saying it i mean it. I spend the last days watching Tutorials for this and that and i did'nt quite understand what exactly is going on when i use this 9 Lines. But you really made it clear for me in under 30 Minutes! Huge thank you for this Video and keep up making stuff like this.😄

    @DerJxnnik@DerJxnnik Жыл бұрын
KZhead