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

Sdílet
Vložit
  • čas přidán 15. 05. 2024
  • 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()
  • Hry

Komentáře • 660

  • @Memphy
    @Memphy Před 2 lety +920

    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!

    • @Ah-wb5le
      @Ah-wb5le Před 2 lety +16

      Almost every tutorial youtube gives me is outdated and does not work

    • @stanleyeasthope1329
      @stanleyeasthope1329 Před 2 lety +4

      @@Ah-wb5le it still works, all of it

    • @Ah-wb5le
      @Ah-wb5le Před 2 lety +2

      @@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

    • @amps9978
      @amps9978 Před 2 lety +2

      @@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

    • @ruairicostin9442
      @ruairicostin9442 Před 2 lety +1

      @@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 ?

  • @TheXeeman
    @TheXeeman Před 3 měsíci +25

    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

  • @vanshshah8722
    @vanshshah8722 Před 2 lety +204

    I suffered for 1 year in c# and when I finally learned c# I found this.
    Give my 1 year back

  • @damnitseven
    @damnitseven Před 2 lety +256

    Me after watching the whole video:
    You know, I'm something of a Brackeys myself

  • @Kaikaku
    @Kaikaku Před 2 lety +393

    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

    • @knos2938
      @knos2938 Před 2 lety +5

      Nice profile pic

    • @EpicBunty
      @EpicBunty Před 2 lety +4

      lol saame !!! but its beyond the opposite of clickbait lol!

    • @catsEeter
      @catsEeter Před 2 lety

      99th like haha yes

  • @Rattlecat
    @Rattlecat Před rokem +128

    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.

  • @Holsp
    @Holsp Před rokem +74

    I think, I think you did it. You made the ultimate Unity tutorial. This is simple and amazing, never seen anything better!

  • @bupp291
    @bupp291 Před 2 lety +176

    This was amazing! Please do a part 2!

    • @Labyrnthdom
      @Labyrnthdom Před rokem +14

      Can't do a part 2. Because there are only 9 lines of code 🤣

    • @JakeSimmer
      @JakeSimmer Před 10 měsíci +2

      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...

  • @giant6706
    @giant6706 Před 2 lety +146

    These terms were soooooo hard for me when I started but now they seems to be very easy

  • @shekhariyer3819
    @shekhariyer3819 Před 2 lety +32

    This guy has taught more than enough content in 25 mins, which huge bootcamp courses and semesters of university education fell short in teaching !!

  • @hirasinghdhami4589
    @hirasinghdhami4589 Před 2 lety +31

    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.

  • @eksquirrel1879
    @eksquirrel1879 Před rokem +2

    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!

  • @IbraheemM98
    @IbraheemM98 Před rokem +11

    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!

  • @3dartninja
    @3dartninja Před 2 lety +12

    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.

  • @fifehunter
    @fifehunter Před 2 lety

    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!

  • @robokraken5904
    @robokraken5904 Před rokem

    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!

  • @zeedamn2804
    @zeedamn2804 Před 2 lety +4

    This is one of the most helpful C# tutorials I have seen! an absolute blessing for this type of content

  • @Jackbrick101
    @Jackbrick101 Před 2 lety

    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.

  • @jamesburks2796
    @jamesburks2796 Před 2 lety

    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.

  • @AlindaeliaGamez
    @AlindaeliaGamez Před rokem

    This is one of the most informative, short video I have seen yet in regards to Unity and C#. Great work!

  • @EnderEclipz
    @EnderEclipz Před rokem

    This is such an amazing tutorial. The way you explained the for loops and the unity position function is so great!

  • @PJ-qx6en
    @PJ-qx6en Před rokem

    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.

  • @Wilzzub0b
    @Wilzzub0b Před 2 lety +1

    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!

  • @denniskristofferhierhoel948

    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

  • @thomaswalsh4882
    @thomaswalsh4882 Před 2 lety +6

    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!

  • @synetic2803
    @synetic2803 Před 2 lety

    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!

  • @KotCR
    @KotCR Před rokem

    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.

  • @mxjokereh
    @mxjokereh Před rokem

    This is probably one if not the best tutorial for C# in Unity. Well done, seriously.

  • @orionstorm8840
    @orionstorm8840 Před 4 měsíci +1

    Thank you so much!
    I rarely comment on tutorials but this was so amazing I couldn't resist!

  • @snb_horizons2877
    @snb_horizons2877 Před rokem

    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.

  • @apexdwarf
    @apexdwarf Před 6 měsíci

    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!

  • @YourCasualPoster
    @YourCasualPoster Před 2 lety

    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!

  • @afrasiabmahdy
    @afrasiabmahdy Před 2 lety +1

    Thank you so much for these awesome tutorials Noa, waiting for more!

  • @inflamass9139
    @inflamass9139 Před 10 měsíci +3

    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 ();

  • @kt-bj5yd
    @kt-bj5yd Před 9 měsíci

    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

  • @LeondalePhotographer
    @LeondalePhotographer Před rokem

    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!

  • @magnus1396
    @magnus1396 Před 11 měsíci

    This was the best video i've ever seen in CZcams about C# in Unity, thank you!

  • @macgeifer8850
    @macgeifer8850 Před rokem

    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.

  • @BacklogDrifter
    @BacklogDrifter Před 10 měsíci

    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!

  • @rashh77
    @rashh77 Před 2 lety +6

    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.

  • @cryelectric
    @cryelectric Před 9 měsíci

    This tutorial is really incredible. Perfectly focused on the point. Impressive! More Unity tutorials like this, PLEASE?!

  • @stengrus6486
    @stengrus6486 Před 2 lety

    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!

  • @zhaolabs
    @zhaolabs Před 2 lety +1

    Thank you so muchhhh you don't know how helpful this is for me!!! Seeing this visualized is amazing

  • @zorininstinct430
    @zorininstinct430 Před 2 lety +6

    Extremely helpful. Please do more of these :)

  • @Dioyt
    @Dioyt Před 2 lety +17

    I really love the way you explain, it's so simple and to the point. You are a lifesaver!

  • @SiDucky1708
    @SiDucky1708 Před rokem

    First video I found that actually goes through each one explaining what it's all for, amazing thanks!

  • @markj702
    @markj702 Před rokem

    Today I learned: this video's clickbait title was NOT clickbait at all...! SUPERB tutorial and discussion. LOADS of value here. Fantastic!

  • @mohitag8566
    @mohitag8566 Před rokem

    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 👍

  • @midus6374
    @midus6374 Před 7 měsíci

    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

  • @PixelbugStudio
    @PixelbugStudio Před 2 lety

    Awesome dude. You covered pretty much every code we use daily. Keep up the good work.

  • @dukerdoge4519
    @dukerdoge4519 Před 3 měsíci

    This helped me a lot. I knew nothing about coding until now. keep up the good work!!😄

  • @zaidmermam2524
    @zaidmermam2524 Před 2 lety +1

    those 9 videos are going great ! ( nine steps - nice lines) keep going with them

  • @Rob-fi2pe
    @Rob-fi2pe Před rokem

    This was incredible. Thank you for this great breakdown!

  • @branidev
    @branidev Před 2 lety +4

    Finally some great video which I can watch on my break at work

  • @GoatVibez637
    @GoatVibez637 Před 2 měsíci

    This one of the best tutorials I have ever watched, thank you

  • @aprilchelley
    @aprilchelley Před rokem

    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!!

  • @hawkgamedev
    @hawkgamedev Před rokem

    Best piece of advice you can find in video format for beginners, guys just watch it all and practice those! Great video!

  • @garry5141
    @garry5141 Před rokem

    Gorgeous, i made my self notes for every single piece of code. Learned so much, thanks!

  • @rachelbasten4929
    @rachelbasten4929 Před 2 lety +1

    Thank you for this. This is the first tutorial I've found that actually helps me

  • @Syvre_
    @Syvre_ Před 2 lety

    This guy helps so much more then all the other C# youtubers! Thank you!

  • @NeoFrog582
    @NeoFrog582 Před 5 měsíci

    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.

  • @Skithiryx7X
    @Skithiryx7X Před 10 měsíci

    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.

  • @doodlebugdev6990
    @doodlebugdev6990 Před rokem

    THIS WAS THE BEST TUTORIAL EVER this is just what I needed and you explained it really well

  • @kushagramewara8467
    @kushagramewara8467 Před rokem

    This is the one tutorial I have found to be most helpful in understanding c# scripting. Will recommend this video who wants to start as game developer. Thanks for the summary.

  • @tadejristic9568
    @tadejristic9568 Před 2 lety +1

    Great video! Perfect summary of the most useful commands!

  • @edanduarte
    @edanduarte Před 7 měsíci

    Amazing tutorial! Thanks Blackthornprod!!!

  • @okw12
    @okw12 Před 11 měsíci

    Dude this helped so much. Even tho it’s super late and I won’t remember most of this, for the first time I’m understanding why the code is written the way it is. I no longer have to mindlessly follow brackets tutorials!

  • @bartsworkshop
    @bartsworkshop Před 9 měsíci

    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!

  • @sarat6488
    @sarat6488 Před 2 lety

    omg thank you for this- you explained things SO MUCH BETTER than the tutorials on Unity's own site

  • @DoItNow347
    @DoItNow347 Před 2 lety

    This is such a good tutorial, even though i knew most of it i can tell noah does a great job of explaining.

  • @JoeSmith-ke9kx
    @JoeSmith-ke9kx Před 8 měsíci

    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

  • @bcd3321
    @bcd3321 Před rokem

    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.

  • @anthonymarra6553
    @anthonymarra6553 Před rokem

    This was the best tutrial every, unity tutorials never actually explain all the code and what it all does so thanks so much

  • @pt3012
    @pt3012 Před 2 lety

    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!♥

  • @elihasty128
    @elihasty128 Před rokem +1

    Best coding tutorial I've seen for game designers by far.

  • @p1ngyy
    @p1ngyy Před 10 měsíci +1

    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.

  • @IDENTICYEA
    @IDENTICYEA Před 2 lety +3

    please do a part 2 helps a lot of new coders like me and wateched all the ads willingly thanks for making this video

  • @r7ed.
    @r7ed. Před 11 měsíci

    Amazing! Hope you make more tutorials and turn thousands of fans into game devs!

  • @JazzyDragons
    @JazzyDragons Před rokem +2

    This was by far the most useful tutorial I have seen on youtube

  • @EpicBunty
    @EpicBunty Před 2 lety

    holy shit bro!! even though I just started learning unity, I have to date not watched a single video that is so jam packed with knowledge about it!
    I thought the title would be clickbait but its fucking more than 100% worth itself more !!!! thanks !!!!

  • @jenjefette5798
    @jenjefette5798 Před rokem

    As a person who is new to programming, you can't imagine how helpful this was!

  • @mariegrasmeier9499
    @mariegrasmeier9499 Před rokem

    Love it! So helpful! Such a good summary of the basic stuff.

  • @tijpetx3080
    @tijpetx3080 Před rokem

    this was very good, nice job, thank you very much. I just started learning C# and unity and after a few days mindlessly following tutorials now I actually understand wtf I was reading.

  • @user-qz6sx2dw2r
    @user-qz6sx2dw2r Před 9 měsíci

    I started learning c# a few days ago and this video was super helpful with helping me understand c#.

  • @DerJxnnik
    @DerJxnnik Před rokem

    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.😄

  • @connor2094
    @connor2094 Před rokem

    Thank you man! This made so much sense and is what ive been looking for :D

  • @prinautospares
    @prinautospares Před 2 lety

    Amazing how you made it so easy to understand so much in a short tutorial. You are awesome.

  • @Endercraft-kf3tk
    @Endercraft-kf3tk Před rokem

    This was a life saver for my college project, thank you so much. This is what should be taught in college and uni in genera.

  • @TJSteel75
    @TJSteel75 Před rokem

    This video is exactly what I needed. Much appreciated

  • @101titanium6
    @101titanium6 Před rokem

    great tutorial man! Your tutorial was by far the most easiest to understand especially for beginners such as myself

  • @gelobledo
    @gelobledo Před 2 lety

    oh thank God for you. I used your movement code the tweaked it a lil for a platformer. Now i can control movement speed. New to Unity and was trying to figure out code to do so. Thank you so much for this video.

  • @kauii_93
    @kauii_93 Před rokem

    one of the best coding tutorials i have ever seen ! And I have seen a lot of them..

  • @albaraegamer6157
    @albaraegamer6157 Před rokem

    I started using unity for 7 days and this is what I needed . nice got a sub !!
    (c# is difficult but java basics helped me a .. looooot)

  • @MoxlyMakesGames
    @MoxlyMakesGames Před 2 lety +10

    As someone who is intimidated by C# and Unity, this video could be very useful. Thank you BTP, very cool!

  • @Nickeltony
    @Nickeltony Před 10 měsíci

    Man when this stuff starts to click it feels like a miracle, great video

  • @jeffreyjumisko5165
    @jeffreyjumisko5165 Před 2 lety

    This paired with GMTK Learning Unity Without Tutorials is a great primer for starting to make small games in Unity. Well done.

  • @JenkedAtBirth
    @JenkedAtBirth Před rokem

    i have always had trouble understanding how the input.getAxisRaw line worked but after watching this i find it makes sense so thank you this video was super helpful.

  • @Rptr797-wn4iu
    @Rptr797-wn4iu Před 22 dny

    I
    Just wanted to say I have been looking for drive to learn c# and this video simplified it and I’m actually motivated to learn

  • @Icie145
    @Icie145 Před rokem

    with this 25 minutes video alone, this just helps me alot and get me into unity for my future projects, thanks alot man :D

  • @ducko8222
    @ducko8222 Před 2 lety

    Very good advice indeed. I learned most of the thing I struggle with, Thank you so much!