How to make a Video Game in Unity - MOVEMENT (E03)

Sdílet
Vložit
  • čas přidán 7. 02. 2017
  • In this video we learn to control our player!
    ● Download scripts, assets and project files for this course: devassets.com/assets/how-to-ma...
    ● Developer Forum: forum.brackeys.com/
    Difficulty of lesson: Novice.
    ····················································································
    This video is part of a mini-series on making your first game in Unity.
    ····················································································
    ► Join Discord: / discord
    ♥ Subscribe: bit.ly/1kMekJV
    ● Website: brackeys.com/
    ● Facebook: / brackeys
    ● Twitter: / brackeystweet
    ········································­­·······································­·­····
    ► All content by Brackeys is 100% free. I believe that education should be available for everyone. Any support is truly appreciated so I can keep on making the content free of charge.
    ········································­­·······································­·­····
    ♪ "Too Cool" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 3.0 License
    creativecommons.org/licenses/b...
    ♪ Baby Plays Electro Games
    teknoaxe.com/cgi-bin/link_code...

Komentáře • 4,2K

  • @kindapeachy696
    @kindapeachy696 Před 4 lety +630

    Hearing "so let's save this" and pausing it in time to write his code before he opens the unity window again should be considered an extreme sport

    • @karlembeast
      @karlembeast Před 4 lety +40

      I would add to your comment on "extreme sport" and go as far as to say. Typing at the same time he writes his code, without pausing the video, should be considered an "extreme sport".

    • @theboringprogrammer4444
      @theboringprogrammer4444 Před 4 lety +20

      @@karlembeast Noob, I typed the code before he even spelled the word "Unity"

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

      The boring programmer Then what the French are you doing here? It sounds like you already knew the code before watching the video

    • @theboringprogrammer4444
      @theboringprogrammer4444 Před 4 lety +11

      @@thesodanerd3205 I was sarcastic.

    • @medityle1170
      @medityle1170 Před 4 lety +3

      Caleb Little somewhat of an r/whoosh

  • @lostmarimo
    @lostmarimo Před 5 lety +577

    That feeling when you Go from wondering, "how the hell do you make things move in unity with code?" to actually making it happen :D feelsgoodman

  • @vermillion8521
    @vermillion8521 Před 3 lety +746

    I just visited Brackey's asset store, and I must say, all of those beautiful assets? for free? I am literally gobsmacked, I am also a blender user and those assets on his store could easily sell for 50-100 $ *easily*. and even the most expensive price you can choose is 20$? This man is a literal God, he deserves so much more recognition
    I literally cannot stress how kind this guy is, its unbelievable

    • @smart_idiot8204
      @smart_idiot8204 Před 3 lety +14

      He sure is a man of culture

    • @ibrahem891
      @ibrahem891 Před 3 lety +32

      he is providing it for free but sure it is better to donate and support his work if you can .

    • @devscetric7982
      @devscetric7982 Před 3 lety +13

      @Carlos Basulto he isn't like that, he generally likes to help people out.

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

      I know i use blender too and there are asset stores with like a 40$ a month subscripition so this is super cool to find

    • @emilybeck8440
      @emilybeck8440 Před 3 lety +1

      200th like

  • @Sentoefn
    @Sentoefn Před 3 lety +507

    "Getkey" is used for if the key is held down while "getkeydown" is used for if the key is pressed once
    You're welcome

    • @jfuggjuy9447
      @jfuggjuy9447 Před 3 lety +9

      thanks

    • @technoverse1384
      @technoverse1384 Před 3 lety +5

      Sir, what should we write after the "GetKey" so that we can move our player by pressing the arrow keys present on our keyboard.
      Can u plz tell me!?

    • @Sentoefn
      @Sentoefn Před 3 lety +4

      @James Thwaites same thing i said just simplified

    • @yousefshams5474
      @yousefshams5474 Před 3 lety +3

      ​@@Sentoefn life saver

    • @klmknop
      @klmknop Před 3 lety +3

      You’re*

  • @randomproductions3979
    @randomproductions3979 Před 4 lety +1314

    Brackeys : talks about variables
    me with my 1 year of scratch experience : "I am four parallel universes ahead of you"

  • @generalwurstwasser4189
    @generalwurstwasser4189 Před 4 lety +682

    Here for the people who wondered why there is an f behind the 2000:
    Both Unityscript and C# use "f" to indicate a float and "d" to indicate a double. The difference is that double is the default for C#, but float is the default for Unityscript. So if you use a decimal number but leave off the "f" or "d", then it will use the default for whatever language you're using.

    • @xord1946
      @xord1946 Před 4 lety +12

      This needs more upvotes, thanks, so I guess it's better to always use them so you're never fucked up by your environment.

    • @s.sradon9782
      @s.sradon9782 Před 4 lety +11

      ​@@xord1946 this, loading the entire game at once, unused libraries, tying the game's physics to the framerate et sic in infinitum are all things that yandere dev did before (and got pissed at people rewriting his code) honestly it's more fun to look at the effects these things had on the games than playing them, but it is the best way of showing how this affects your project so you'll never get fucked over by your own stupidity.
      all hail general sosigwater

    • @lishiwei7492
      @lishiwei7492 Před 4 lety +14

      are you sure it doesn't want us to pay respec

    • @reallylegit5145
      @reallylegit5145 Před 4 lety +3

      imagine leaving a comment on a video you didn't watch. 6:23

    • @generalwurstwasser4189
      @generalwurstwasser4189 Před 4 lety +8

      @@reallylegit5145 He didn't really explain why the f is behind the number, he just said that unity complained. So maybe you should watch the video again.

  • @vectozavr
    @vectozavr Před 3 lety +504

    Thanks a lot for your job! I am proud of that youTube platform has such a great professionals :0

    • @MalalisJyleErwinD
      @MalalisJyleErwinD Před 3 lety +3

      hey bro I need some help here's my code:
      using UnityEngine;
      public class PlayerMovement : MonoBehaviour
      {
      public Rigidbody rb;
      public float forwardForce = 2000f;
      // Update is called once per frame
      void FixedUpdate()
      {
      rb.AddForce(0, 0, forwardForce * Time.deltaTime);
      if (Input.Getkey("d"))
      rb.Addforce(500 * Time.deltaTime, 0, 0);
      }
      }
      The problem lies within the if statement
      it says that "Input does not contain a definition for Getkey"
      and that "Rigidbody does not contain a definition for addforce

    • @Ace-me3ig
      @Ace-me3ig Před 3 lety

      @@MalalisJyleErwinD i think you missed a step in ep 2 check again

    • @GhostSlayerYT
      @GhostSlayerYT Před 3 lety +1

      @@MalalisJyleErwinD using UnityEngine;
      public class PlayerMovement : MonoBehaviour
      {
      public Rigidbody rb;
      public float ForwardForce = 2000f;
      public float SidewaysForce = 500f;
      // Start is called before the first frame update
      void Start()
      {
      }
      // Update is called once per frame
      void FixedUpdate()
      {
      rb.AddForce(0, 0, ForwardForce * Time.deltaTime);
      if (Input.GetKey("d"))
      {
      rb.AddForce(SidewaysForce * Time.deltaTime, 0, 0);
      }
      if (Input.GetKey("a"))
      {
      rb.AddForce(-SidewaysForce * Time.deltaTime, 0, 0);
      }
      }
      }

    • @StephenBalsenn72
      @StephenBalsenn72 Před 3 lety +1

      @@MalalisJyleErwinD you wrote Getkey instead of GetKey (its case sensitive)

    • @LucasBrouwers0511
      @LucasBrouwers0511 Před 3 lety

      @@MalalisJyleErwinD just retype it

  • @yisle2802
    @yisle2802 Před 3 lety +54

    It's incredible how this amazing tutorials are way better than a whole semester at a university

  • @conehead2795
    @conehead2795 Před 4 lety +1649

    He puts the " f " at the end of public float numbers to pay respecc

  • @wow-sg9mk
    @wow-sg9mk Před 4 lety +1242

    It's funny how every video has so many less views than the previous. Gotta stay motivated

    • @secretname2670
      @secretname2670 Před 4 lety +63

      Basically every video series about anything ever (gameplay or teaching , both got same problem)

    • @Some0neSomewhere
      @Some0neSomewhere Před 4 lety +92

      Unfortunately we're in a time where it's about "I want it NOW" rather than learning, waiting or earning it. I think many people expected to make a game after 2 or 3 small tutorials and when they realized it takes more work, they gave up. Kinda sad, really.

    • @itssante5693
      @itssante5693 Před 4 lety

      @@1NabbinatoR thx for the idea XD

    • @mohammedbenchama5275
      @mohammedbenchama5275 Před 4 lety +3

      its too hard to continue

    • @Scarletraven87
      @Scarletraven87 Před 4 lety +18

      Or maybe it is just because - as every tutorial on YT - it is casually and intentionally watched (and re-watched) many times over the course of years, so natually the older videos will have more views.

  • @zaleshomeowner3493
    @zaleshomeowner3493 Před 10 měsíci +12

    I know you're not making videos anymore, but I just wanted to say that you are a saint for uploading free to use assets and files for your series. You are a beautiful person.

    • @user-dz8pk3qv1n
      @user-dz8pk3qv1n Před 3 měsíci

      Hii bro

    • @ThunderFTW0
      @ThunderFTW0 Před 6 dny

      I know right. new to unity and its so helpful to get free assets just to test things with

  • @frostinstant1892
    @frostinstant1892 Před 3 lety +7

    I love how he gives us the basics and explains it really well, and then every other thing he explains in understanable

  • @_tommunist_
    @_tommunist_ Před 7 lety +533

    Is it just me, or has the quality of these videos become astounding?

    • @Brackeys
      @Brackeys  Před 7 lety +62

      Wow, thanks a lot! Been putting a lot more time into each one :)

    • @_tommunist_
      @_tommunist_ Před 7 lety +3

      Brackeys no problem! I've been watching you for quite a long while!

    • @furyshiftz
      @furyshiftz Před 7 lety

      What Number If You Want To Do Backwards Force Please Reply Brackeys

    • @jimmyhaotran123
      @jimmyhaotran123 Před 7 lety +2

      simple put, give it a negative number, if you are only asking for going backwards, it should work fine

    • @sonicsplasher
      @sonicsplasher Před 7 lety +1

      Its simple the direction of backwards is -z
      So do this (0,0,-BackwardSpeed)

  • @IamStereotype
    @IamStereotype Před 5 lety +332

    This is literally the first time i've used unity and I already feel like I can make the next god of war game, these tutorials are so damn good

    • @intru3915
      @intru3915 Před 5 lety +81

      Don't be silly. You can't make next God Of War game.
      Sony would sue you for using their title.

    • @secretname2670
      @secretname2670 Před 4 lety +57

      @@intru3915 //not gonna lie they got us in thr first half

    • @medusawitchful
      @medusawitchful Před 4 lety +4

      sony will sue you

    • @danceswithmetroids162
      @danceswithmetroids162 Před 4 lety +33

      @@daniellordyt Ok, but Undertale, Stardew Valley, Cave Story and MINECRAFT were all developed by one person.
      Telling somebody it takes a while or it's difficult to make a game by themselves is fine, but stop telling people they just "can't do something". That's not helpful.

    • @flatearther5712
      @flatearther5712 Před 4 lety +6

      daniellord ok but shut up and let the person have their moment thanksbye

  • @Icanthandle938
    @Icanthandle938 Před rokem +17

    5 years later and this code still works

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

    superb tutorial series, I always wanted to learn how to make a game but completely dismissed it out of fear of learning code. But this breaks things down in a way that actually starts to make sense immediately, which is motivating

  • @DeliusVDB
    @DeliusVDB Před 4 lety +129

    I laughed every time I successfully coded the cube and watched it run away. Thanks for the awesome course.

    • @ragingraven0003
      @ragingraven0003 Před 3 lety

      Same! I giggle and tell my fiance to come see every time I successfully code 😂😂

    • @Grant-np7jd
      @Grant-np7jd Před 3 lety

      sameeeee

    • @saketbakshi4235
      @saketbakshi4235 Před 2 lety

      I showed it to my mom and she said that I am wasting my time... Pain.

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

      when i press "a" ,it doesn't move left, any help please!!

  • @bernardodittz3582
    @bernardodittz3582 Před 5 lety +492

    Coding your own games is easier than you think. You know, you should take this online Unity course.

    • @mattb6903
      @mattb6903 Před 5 lety +35

      i can never tell if it says Udemy or Unity lmao

    • @robloxgameplayfr3841
      @robloxgameplayfr3841 Před 5 lety +5

      @@mattb6903 same

    • @TheFishHead2313
      @TheFishHead2313 Před 5 lety +18

      @@HHHHH-vm5kc just stick with youtube. Its better to research on your own than do what other people tells you to do.

    • @SUB-ye4qc
      @SUB-ye4qc Před 5 lety +1

      @CJH technicaly yes

    • @thunder_bear9925
      @thunder_bear9925 Před 5 lety +3

      I got this ad 1,000 times lol

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

    I'm headed to your patreon now. This is the absolute BEST, most helpful tutorial I have gone through. I've wasted so much money on courses all over the web and none of them are this great. Thank you so much

  • @tutiexplosivo7958
    @tutiexplosivo7958 Před 3 lety +3

    Dude out of all my years on youtube this is these videos are the ones i most enjoyed. Good job my guy

  • @CmFive
    @CmFive Před 4 lety +280

    Me, a year ago: "I'm going to watch this for fun!"
    Me, right now: "Wow, I finally have Unity installed! What should I make?"

    • @74gaara42
      @74gaara42 Před 4 lety +6

      Help makeing timesplitters rewind :)

    • @emilegoulard265
      @emilegoulard265 Před 4 lety +7

      U da man, Cat Man.
      Anyways I always wanted to get into Unity whilst I was in my GameMaker Phase and I had this similar feeling like you lol.

    • @motheuser
      @motheuser Před 3 lety +1

      Wow Same Man!

    • @78aspectt
      @78aspectt Před 2 lety +1

      Yooo same

    • @Alwayscommentseveryday
      @Alwayscommentseveryday Před rokem +1

      Add block and BEAN

  • @hayian2575
    @hayian2575 Před 5 lety +314

    I learned more programming from this mini-series than in an entire year of studying computer science, good job man, your ways of teaching are ON POINT.

    • @ethanma1722
      @ethanma1722 Před 5 lety +63

      There's something wrong with how you study computer science then

    • @donoffitness2892
      @donoffitness2892 Před 5 lety +3

      @@ethanma1722 fr lmaoo

    • @mertb.297
      @mertb.297 Před 5 lety +3

      U study in bangladesh or sth like that?

    • @koi596
      @koi596 Před 5 lety +3

      I studied in khan academy programing...
      Didn't learn much

    • @whytry4682
      @whytry4682 Před 4 lety

      Same

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

    I’m new to these things but the fact that they made their assets depends on your option, if you want to pay or not, is a very generous act by them!! Nice guys you’re the best for real🙏

  • @blebdapleb8771
    @blebdapleb8771 Před 2 lety +61

    for those who want to optimize it using the method brackeys said during the end of the vid, here is the code to do it:
    private bool dKey = false;
    private bool aKey = false;
    private void Update()
    {
    if (Input.GetKey("d"))
    {
    dKey = true;
    }
    else dKey = false;
    if (Input.GetKey("a"))
    {
    aKey = true;
    }
    else aKey = false;
    }
    void FixedUpdate()
    {
    rigidbody.AddForce(xForce, yForce, zForce * Time.deltaTime);
    if (dKey)
    {
    rigidbody.AddForce(movementSpeed * Time.deltaTime, 0, 0);
    }
    if(aKey)
    {
    rigidbody.AddForce(-movementSpeed * Time.deltaTime, 0, 0);
    }
    }

    • @Gabriel-zy6xv
      @Gabriel-zy6xv Před rokem +7

      would you not have the else if(aKey) as an if statement? that way when you hold down both at the same time it doesnt just think you're only applying the force of holding down the d key

    • @gupta.s
      @gupta.s Před rokem

      Thanks for copying the code here, now I don't have to search outside to look for how to do it properly.

    • @blebdapleb8771
      @blebdapleb8771 Před rokem +1

      @@Gabriel-zy6xv lol sorry for the late af reply, yeah ur right, I changed it

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

      THANK YOU SO MUCH

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

      Thank you so much

  • @bojken5384
    @bojken5384 Před 7 lety +488

    Thanks Brackeys for making videos for us

    • @Brackeys
      @Brackeys  Před 7 lety +24

      You are very welcome! :D

    • @armeenseyyedy9016
      @armeenseyyedy9016 Před 7 lety +3

      Great tutorial mate, keep it up, thank you so much!

    • @magikarp8084
      @magikarp8084 Před 7 lety +2

      Brackeys really nice videos. Would love to see how to make ropes like the once used in some platformers to swing from platform to platform.

  • @sanderhoel6289
    @sanderhoel6289 Před 7 lety +245

    I really like how you explain everything so that everyone understands

  • @Jhonermite
    @Jhonermite Před 3 lety +1

    brackeys even though you have quit youtube you wont be forgotten you have helped countless people make games you have already gave people thousands apon thousands of dollars just because of your tutorials man good job dude

  • @AstonArchitecture
    @AstonArchitecture Před 2 lety

    Fantastic, of all the tutorials I've seen these last few days, you are the only person to explain why "f" is used in float values.

  • @xanny57
    @xanny57 Před 7 lety +76

    Here are some requested topic which I'd like to see:
    -Collision checking
    -Health variables with particle effect on death
    And as always: This video was absolutely great! :D

    • @legopotato9122
      @legopotato9122 Před 7 lety +1

      if you need help with collision i can help

    • @xanny57
      @xanny57 Před 7 lety

      That's very nice!
      I'm just new in coding in C# and barely know what a variable is...
      Just kidding :D
      But still I'm very bad at coding but if you could help me with collision-checking (only a technique, maybe), that would be awesome! :D

    • @ImTornadoify
      @ImTornadoify Před 7 lety

      Just use this function: void OnCollision*x*(Collision col)
      'x' could be "Enter", "Stay", "Exit".
      Just make sure you add a Collider to the GameObject and a Rigidbody if necessary.
      Here's an example of the function:
      public void OnCollisionEnter(Collision col)
      {
      Debug.Log("Something Collided with me!");
      }

    • @maxofcourse
      @maxofcourse Před 7 lety

      if you want stuff with particle effect on death, Brackeys has a video in his Multiplayer FPS series that shows death and spawn effects :D

    • @xanny57
      @xanny57 Před 7 lety

      Tornado Thanks for the reply, but I have another question: What is "void"?
      I know the meaning as a word, but in programming, how could you describe it?
      I just don't get it :/

  • @stef9019
    @stef9019 Před 7 lety +45

    You're such a great guy for having a free option for everything.... that's rare y'know. Because you made it free i'm going to pay for it in the future :D I love your videos!

  • @thelightbringer8610
    @thelightbringer8610 Před rokem +27

    This video is so cool!
    After you showed how to code for left/right movement, i wannted to try to get forward backwards and jumping on my own!
    it was so much fun to learn

    • @spartan112
      @spartan112 Před rokem +2

      Same thing is happening to me

  • @ALiteralCatfish
    @ALiteralCatfish Před rokem +1

    trying to start making games
    and you are my savior, you deserve a sub
    and the free assets just makes this situation 100 times better
    youre a legend

  • @ramtourgeman
    @ramtourgeman Před 7 lety +20

    I'm so happy you made this tutorial when.
    I tried to get into Unity I had badtime to figure out a tutorial to know the basics of Unity.
    I like your content keep with it Brackeys!

  • @Snikeros
    @Snikeros Před 5 lety +8

    Finally a video that explains what variables are in a concise manner. Not even my old teachers knew how to explain variables the way you did.

  • @cerealbawxtv
    @cerealbawxtv Před 3 lety

    I'm finding this over 4 years after it's been uploaded and it's still been very very very helpful. Just got yourself a new sub!

  • @_.emberrr
    @_.emberrr Před 3 lety +10

    I will always return to this as the videos that started my career.

    • @NoSp1ne
      @NoSp1ne Před 2 lety

      And? Did it work out?

    • @_.emberrr
      @_.emberrr Před 2 lety

      @@NoSp1ne ok when i said career i didnt mean i immediately started making money but what i meant is that this is what got me into coding. first in unity, then i went to console apps, WPF, etc. still a novice, though

  • @user-mj8xn4ho3h
    @user-mj8xn4ho3h Před 4 lety +35

    you are a living LEGEND! you make all of this for free and really easy to follow and understand thank man I love your vids!!!

  • @TimM-kz1vl
    @TimM-kz1vl Před 4 lety +44

    Thank you so much for making these videos! I started off as some dude who had all these ideas for games but no way to implement them. Every tutorial I found, had something missing and I'm not sure what. Being able to take the crappy 3d models I've been making and watching them move from my controls, showed me just how far I've come. To everyone else, I'd recommend taking notes on these vids so you don't have to keep rewatching them. Here's my notes so far: Unity Notes (Brackeys)
    Video 1/Intro
    Controls:
    Middle mouse to zoom.
    Hold alt to pan around and to use WASD.
    Scroll wheel to zoom in/out.
    F to focus.
    Rotate tools and everything, are top right or using QWERT.
    Rigidbody component to get the item to use the game’s physics.
    Box collider: stops item from colliding with other objects. Can set an object to collide like any item regardless of its mesh.
    Mesh is how you see it.
    Video 2 Programming
    // are comments that are ignored
    C# script edited in Visual Studio
    C# is case sensitive and end all lines with ;
    To add script: go to component and choose Add Script.
    Must drag script to item before it can be used.
    Void Start: Runs script when game starts and only once.
    Void Update: Runs script per frame
    Console notes: Debug.Log(“Message here”);
    Above function: public Rigidbody rb; (Defines Rigidbody as rb so we don’t have to keep typing it.)
    On the inspector tab, anything with that script applied to it, will now have an extra slot in their script where you drag the rigid body component to. So when you write any code referencing rb, it knows you mean Rigidbody.
    Under void start:
    rb.useGravity = false;
    Replace rb.useGravity = false; with rb.AddForce( 0, 200, 500); // x, y, z
    Erase entire start function then,
    Under void Update:
    rb.AddForce( 0, 0, 200);
    But how much force you get, depends on your frames which differs from computer to computer.
    Add in rb.AddForce( 0, 0, 200 * Time.deltaTime);
    Force wasn’t strong enough so change the 200 to 2000
    Change void update to FixedUpdate
    Boolean is (if-then) statements.
    Video 3: movement
    Freeze Constraints/rotation under Rigidbody
    Using physics material (Create>physics material)
    To edit a value without going into the code, we use variables:
    To make it editable, we type Public before the line.
    Example: public int. Health = 10; //This tells the game that health is both an integer, a variable and is equal to ten.
    I can then edit Health = 5; // or w/e I want, later on.
    Debug.Log(Health); // displays health in console
    Next example:
    First do Public float forwardForce = 2000
    Using Public makes a variable editable
    After that, you must go down to the rb.AddForce( 0, 0, 200 * Time.deltaTime); and change it to rb.AddForce(0, 0, forwardForce * Time.deltaTime); //Now the game knows that the forward force it’s exerting, is equal to the variable you edit in the inspector.
    Player controls/if-then statements
    != (not equal to
    if (Input.GetKey("d") )
    //Only executed if condition is met
    rb.AddForce(500 * Time.deltaTime, 0, 0); //This is your "Then" statement
    X axis is right and left, so -500 is right, 500 is left
    Sometimes Unity will complain if a float number is not followed by an f, like 2000f

  • @Lexyvil
    @Lexyvil Před 2 lety

    For my first 3D game engine, you are doing a phenomenal job explaining the basics! Thank you!

  • @dante_a_1103
    @dante_a_1103 Před 2 lety

    This lesson is amazing. Its so easy to follow and Brackeys makes it fun. This is the best coding tutorial I have ever watched.

  • @archersmith6480
    @archersmith6480 Před 5 lety +51

    This man is such lawful good energy and it makes me have faith in humanity. Making ur products a pay what u can afford. You and elon musk man, you too are here to make the world better ILY

  • @hjc1710
    @hjc1710 Před 4 lety +11

    Just wanted to call out, you're a great teacher dude, you really are. I've known programming for years, but your approach to teaching vars and everything is spot on.
    Seriously great work!

  • @luiyijose78
    @luiyijose78 Před 3 lety

    I love how he keeps everything free and accessible, thanks you are an angel

  • @h-0058
    @h-0058 Před 3 lety +1

    Thank you for doing these tutorials :) I've programmed in C++ for 2 years now, but I was always scared to try C# and Unity, and get into the "visual" part of programming, since I never really found something to explain from scratch
    This tutorial seems like the perfect opportunity!

  • @flatearther5712
    @flatearther5712 Před 4 lety +4

    I’ve been trying to figure out how to make video games for my entire life, it has always been my passion, and finding these tutorials was a blessing, so thanks!! I just downloaded unity (again lol) and im gonna put alot of work into this. Thanks for keeping this entertaining!

  • @bobthedeleter
    @bobthedeleter Před 4 lety +4

    The sheer quality of these free videos on youtube is insane! You honestly deserve to be one of those pro teachers for $300 courses on udemy for just how approachable your videos are! Thanks so much from me and I'm guessing the literal millions of people you've helped

  • @los_leones_god
    @los_leones_god Před rokem

    this guy teaches so fast that every second is full of detail which i literally love it 😍😍

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

    Brackeys! Thank you so much for creating that asset repository! I'm working on learning unity and gamedev, and some of your fantasy assets will make excellent placeholders while I learn modeling! I cannot thank you enough for this service you are providing!!

  • @Jappppluz
    @Jappppluz Před 4 lety +3

    As a player(and a somewhat curious programmer), I finally knew what's happening behind when I'm missing those inputs in low framerates. Thanks for the great tutorials.

  • @sylana5556
    @sylana5556 Před 4 lety +6

    if your watching this tutorial and feel like giving up trust me don't, you'll get there eventually and once you do you will be glad u didn't stop.

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

    It takes a master to explain complex topics and make it easy to understand. Thanks for the vids

  • @sohrabroozbahani4700
    @sohrabroozbahani4700 Před 3 lety +1

    I was a computer engineering student 20 years ago... I never had so much fun accomplishing anything like today... thank you a lifetime...

  • @xxzippyzachxx
    @xxzippyzachxx Před 7 lety +52

    Wow! I don't think there is anyone better on CZcams that explains Unity like you! Great job!!!

  • @DTvoyager
    @DTvoyager Před 4 lety +3

    "And it already starts to feel like a game" YESSSS! As a visual artist this made so much sense to me than the Console printing method.

  • @curiouSs-NA1
    @curiouSs-NA1 Před rokem +2

    I love when youtubers make a important aspect to coding something related to real life.

  • @cloudythb
    @cloudythb Před 2 lety

    I've been using GameMaker Studio 2 for a few months now and C# and GML share a lot in common. Thanks a lot!

  • @michaeln.pierce3728
    @michaeln.pierce3728 Před 4 lety +5

    It's such a terrible feeling to get stuck with errors in the codes and no idea what to do, but such a great feeling when you finally figure it out and fix it.

  • @drfurbz
    @drfurbz Před 5 lety +3

    Man these tutorials are incredible I really feel like i'm learning something from them 10/10

  • @saketg5954
    @saketg5954 Před 3 lety +1

    This is fantastic man. Thank you for doing this. We really are living in the golden age of learning.

  • @astralknight7636
    @astralknight7636 Před 2 lety

    im 13 and had started coding this year man and this is the first really good coding lesson after 2 years of surfing the wed

  • @kalpjoshi4463
    @kalpjoshi4463 Před 3 lety +77

    “You can pay whatever you like for this”
    That’s how you get subs without asking 😘

  • @charKT-7461
    @charKT-7461 Před 5 lety +42

    Online Courses on Udemy: ✋😤
    Brackeys’ Tutorials: 😀👌

  • @Orincaby
    @Orincaby Před 3 lety

    Thanks, Brackeys!
    These tutorials actually help a lot more than you probably think.

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

    I greatly appreciate the time you put into these tutorials. They are helping me out a lot for a series made 5 years ago. :)

  • @neelamverma1032
    @neelamverma1032 Před 4 lety +30

    Unity- 1-Brackeys
    2- Sykoo
    Blender- 1-Andrew(Blender guru)
    2- CG Geek
    How many agree with me?

  • @gamertank9682
    @gamertank9682 Před 5 lety +4

    Hey man, just want to express my deepest gratitude, for your AMAZING efforts with teaching an expansive topic, in such a fairly simplistic manner. Just pushing until I become more financially stable, then I'd LOVE to support you via Patreon 🔥
    Love what you're doing & implore for you to keep going 🙏
    - GamerTank

  • @Alex-lt5ho
    @Alex-lt5ho Před 3 lety

    This is so easy! I tried this multiple times before with other youtubers/guides and somehow always got lost, so far I've been able to keep track easily with you though!

  • @vanshpahuja2064
    @vanshpahuja2064 Před 3 lety +1

    I am 12 years old and these tutorials help me so much , I do not understand completely whats going on but still I learnt a lot about C sharp and game development , thank you soo much for these free tutorials

  • @GameOver7853
    @GameOver7853 Před 7 lety +19

    The best Unity tutor of all time

  • @kitthekat6844
    @kitthekat6844 Před 6 lety +3

    I'm loving these tutorials! Thanks alot!

  • @bilelbboy3303
    @bilelbboy3303 Před 3 lety +1

    I bought a course one of the top courses in udemy and it was nothing comparing to your videos, REALLY GREAT JOB MAN

  • @jamesleighton1670
    @jamesleighton1670 Před 2 lety

    Watched your first three videos. Had an absolute blast, thanks for all the help!

  • @michaelgonzalez8988
    @michaelgonzalez8988 Před 5 lety +21

    This man is a fucking legend, thank you for taking time to do this. You're too good for humanity!!!

  • @kyptix225
    @kyptix225 Před 4 lety +54

    Wow, a udemy ad on this free turtorial.

    • @shaderflip2641
      @shaderflip2641 Před 4 lety +1

      i saw that as well lol

    • @aaronfidelis3188
      @aaronfidelis3188 Před 4 lety

      Just despicable...

    • @joshawafrith4797
      @joshawafrith4797 Před 3 lety

      @@aaronfidelis3188 yeah how despicable. guy gives free lessons, free assets and has the audacity to have ads on his videos, shame on him for getting CZcams to fund his time and effort.

    • @chronofactor2037
      @chronofactor2037 Před 3 lety

      @@joshawafrith4797 That isn't what he meant, he meant that Udemy is bad for trying to take views away from him by advertizing their courses. It's not a problem of there being monetization on the video.

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

    This is so helpful. I have no prior experience with any of this and I'm learning easily

  • @danielf5651
    @danielf5651 Před 3 lety

    Watching your tutorials in 2020 and it's awesome.

  • @Michael-sc8if
    @Michael-sc8if Před 3 lety +21

    I was able to do this tutorial without one error! Yahoo! I think I will have to invest in an additional monitor, switching from Unity to CZcams to Visual Studio is time-consuming.

  • @fafe1234
    @fafe1234 Před 7 lety +4

    Brackeys keep making videos they're awesome what I like about you is that you explain well and you don't just give us the code keep it up!!😄😄

  • @sannidhyasharma1930
    @sannidhyasharma1930 Před 3 lety

    I already knew js and the way you explained it made C# really really easy for me

  • @Napqn
    @Napqn Před 2 lety

    I watched this episode in 2022 and you made it so understandable to me that I went ahead and added a few extra movements keys to make it feel even more like a game more, thanks Brackeys : ). (I did this ahead if time btw)

  • @JohnSmith-vf2xy
    @JohnSmith-vf2xy Před 7 lety +3

    209 likes and no dislikes? Wow, you make really nice content.
    This is a really helpful channel, definitely subscribing and liking.

  • @noname_panda2836
    @noname_panda2836 Před 4 lety +112

    "he starts rotating and jumping"
    Me using a sphere: I am four parrarel universes ahead of you!

    • @bbgamingplay1511
      @bbgamingplay1511 Před 4 lety +6

      Sorry but not very funny.
      Please don't call me a boomer

    • @destinysunny3675
      @destinysunny3675 Před 4 lety +8

      This is really funny... I did the same, and it was really fine without adding physic material

    • @BananaWasTaken
      @BananaWasTaken Před 3 lety +4

      @@bbgamingplay1511 you’re not a boomer, just kinda dumb. Why bother replying just to say ‘not funny’ and add nothing of value to the replys. We do not need to hear your personal opinion. At least if you call it funny then the original commenter gets to know their comment had a positive impact. Now I’m not saying ‘if you don’t have anything nice to say don’t say it’, feel free to express your opinion, but at least do it in the form of constructive criticism instead of just a negative comment (e.g ‘I do not find this very funny because.......’ then you could explain why you don’t find it funny (whether it’s just not your sense of humour, not very original, etc)).

  • @awaisnawaz2791
    @awaisnawaz2791 Před 3 lety

    Man, you're such a gem... Always feels so nice to see you with a smiling face in the end. You're doing great, keep up!

  • @wally4879
    @wally4879 Před 2 lety

    So I really just started coding a short time ago, and it's quite a challenge to begin learning. I actually started a college coding class in high school to learn because my school doesn't provide how to code. In the class I have been struggling and often felt unable to write what I deemed important down because the classes are online, so they more or less went over my head about a week and a half in. I picked up the first couple of these videos but I lacked motivation to keep at it, but after the puzzling of my recent classes I figured this might help familiarize me. In this episode you have motivated me past daydreaming game ideas and I am now taking notes on your videos. Thanks.

  • @benceszke7209
    @benceszke7209 Před 4 lety +3

    Holy cow! Tanks dude! This makes my life soo much easier, Even with Java experience this is understandable

  • @jdam9520
    @jdam9520 Před 7 lety +111

    The best tutorial ever, even my grandmom can understend it.

  • @Cookie-oh7hd
    @Cookie-oh7hd Před rokem

    Big like. I did understand it. I even tried adding the "w" key to go forward, and it worked!

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

    this is amazing, i can see that you really put time, effort and love into these tutorials, thanks for that!♥

  • @YodaForce157
    @YodaForce157 Před 3 lety +35

    It wont work for me ive got the error “the variable rb of playerMovement has not been assigned
    Edit:i put none (rigidbody) to player (rigidbody”

    • @kaption1321
      @kaption1321 Před 3 lety +1

      Yea I had the same problem this fixed it though thx !

    • @suffer2903
      @suffer2903 Před 3 lety +1

      what do you mean

    • @hunniedew5037
      @hunniedew5037 Před 3 lety +1

      Hi I am still a little Can fuzed can you please explain a little more

    • @justadogwithagun6230
      @justadogwithagun6230 Před 3 lety

      @@hunniedew5037 add the component rigidbody to the script like he does

    • @user-kq3xn3jp7m
      @user-kq3xn3jp7m Před 3 lety

      I dont get the mistake u made, can u clarify?? im getting the same error

  • @chupachups2030
    @chupachups2030 Před 5 lety +3

    i love you dude i am addicted to your videos and i love this more keep the good work

  • @abdullahalam2088
    @abdullahalam2088 Před 3 lety

    Best tutorials I've come across so far! Love them!

  • @gabeweston6660
    @gabeweston6660 Před 3 lety

    All the other tutorials I have watched are nothing compared to this, keep it up and thank you!

  • @yimwav
    @yimwav Před 7 lety +5

    you make everything so clear and I understand all the code THX DUDE :)

  • @xanny57
    @xanny57 Před 7 lety +13

    Third😅
    Really good video!
    Waited so long for this!😁

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

    I loved that you added the extra challenge at the end! I managed it myself :)

  • @blizzyanimates2085
    @blizzyanimates2085 Před 2 lety

    I've been looking for some coding tutorials for Unity cuz I kinda wanted to be a game dev and everything was so hard but... when I saw this vid called how to program, I started my own program and this started my life as a game dev. A couple of months passed and then I saw this vid called "GoodBye Thank you for everything!" he stopped uploading. and I was kinda sad but happy for Brackeys. Hope he gets his free life. He will be my inspiration forever:).

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

    This went perfectly well!

  • @jamesbrooks9321
    @jamesbrooks9321 Před 5 lety +270

    thank to the youtube gods that we can watch videos at x.75

    • @gottembra5742
      @gottembra5742 Před 5 lety +15

      Shreerang Vaidya I played this at 0x Thank the CZcams gods

    • @ItsMeAndru
      @ItsMeAndru Před 5 lety

      Well, thank you as well for that info.

    • @davidchristian8473
      @davidchristian8473 Před 5 lety +1

      10nk u, I ddnt know, from now i'll watch tutorials on x1.25 or more.

    • @salvatorebutera7453
      @salvatorebutera7453 Před 4 lety +1

      Thank this god called Brackeys!

  • @gabrielvarca
    @gabrielvarca Před 2 lety

    2 days into your CZcams course, God Thank you so so much

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

    You're the best bro,Thank you so much for sharing such priceless information .I'm getting motivated every time the code works and though sometimes it doesnt, Im not giving up.