How to make a Video Game in Unity - PROGRAMMING (E02)

Sdílet
Vložit
  • čas přidán 31. 01. 2017
  • Write your first script to move the player!
    ❤️ Donate: www.paypal.com/donate/?hosted...
    ····················································································
    This video is part of a mini-series on making your first game in Unity.
    ····················································································
    ♥ Subscribe: bit.ly/1kMekJV
    ● Website: brackeys.com/
    ● Facebook: / brackeys
    ● Twitter: / brackeystweet
    ········································­­·······································­·­····
    ► All content by Brackeys is 100% free. We believe that education should be available for everyone.
    ❤️ Donate: www.paypal.com/donate/?hosted...
    ········································­­·······································­·­····
    ♪ Baby Plays Electro Games
    teknoaxe.com/cgi-bin/link_code...

Komentáře • 8K

  • @rbayuardana
    @rbayuardana Před 4 lety +5001

    "Hello, World !"
    The beginning of a never ending nightmares

    • @thijslumeij
      @thijslumeij Před 4 lety +61

      i can't add the rigidbody at 3:50 how did you did it?

    • @JuvenylAssassin
      @JuvenylAssassin Před 4 lety +21

      @@thijslumeij i am having the same issue.

    • @noalaor5714
      @noalaor5714 Před 4 lety +16

      @@thijslumeij did you type it usung a big letter at the start or not? cuase if not , theres the problom

    • @thebass4511
      @thebass4511 Před 4 lety +29

      Since I am a man of class I put hello there.

    • @thebass4511
      @thebass4511 Před 4 lety +26

      BIG TIP WATCH THE VIDEOS WITH OUT DOING THE THINGS IN THE VIDEO ON TIME FIRST SO SOME OF THE CONCEPTS ARE A BIT MORE FAMILIAR.

  • @gergoorosz6039
    @gergoorosz6039 Před 6 lety +4561

    These tutorials are better than paid ones on Udemy

    • @zobe3074
      @zobe3074 Před 6 lety +299

      The irony is that in every video i get an add for paid tutorials on Udemy lol

    • @BlazertronGames
      @BlazertronGames Před 6 lety +75

      That's because anyone can make a course on udemy, so you'll get a lot of crap on their, there are some high rated ones though, and they explain a lot more than brackeys does in this video, that might be confusing to complete beginners, this is a good one udemy.com/unitycourse or udemy.com/unitycourse2

    • @nathancox2349
      @nathancox2349 Před 6 lety +84

      Well to be fair, anyone can make tutorials on CZcams.

    • @BlazertronGames
      @BlazertronGames Před 6 lety +79

      Nathan Cox Exactly, that's why you also find a lot of crap on youtube.

    • @greenballscience9514
      @greenballscience9514 Před 6 lety +10

      I got an ad for udemy

  • @biologicalseed777
    @biologicalseed777 Před 3 lety +554

    can't wait to get to the best part, *UNITY'S PARTICLE SYSTEM*

    • @xmgamer5672
      @xmgamer5672 Před 3 lety +87

      Oh your wondering what Karlson is?

    • @digvijaysingh5290
      @digvijaysingh5290 Před 3 lety +50

      @@xmgamer5672 Its just a game Dani is working on.

    • @crustboy1056
      @crustboy1056 Před 3 lety +57

      @@digvijaysingh5290 its like the 15th most wishlisted game on steam, lets get to #1 GAMERS
      SIPS MILK:
      REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

    • @rethishrams6168
      @rethishrams6168 Před 3 lety +37

      So slap wishlist now GAMERS

    • @GenericSoutheastAsian
      @GenericSoutheastAsian Před 3 lety +18

      Buy milk

  • @BOTTLEDSPRITE
    @BOTTLEDSPRITE Před 3 lety +342

    Me: ok so this should work when I press play, right?
    Unity: The most i can do is 999+ errors

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

      lol same with me

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

      Same wtf

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

      @ARYA RASOOLY Damn thanks, I was wondering what I did wrong.

    • @SLIME-gx6fo
      @SLIME-gx6fo Před 3 lety

      @ARYA RASOOLY thanks dude

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

      @ARYA RASOOLY OMG thanks dude you just made me realise how much of an idiot i was being

  • @fret2fret221
    @fret2fret221 Před 3 lety +854

    dude. I was legit so excited when I made the box jump forward! lol even called my wife in to my office "babe! come check this out!" needless to say she was not very impressed lol

  • @mememan6198
    @mememan6198 Před 3 lety +2058

    FOR ANYONE STARTING UNITY IN 2020, PLEASE DO THIS BEFORE WRITING ANY SCRIPTS:
    Unity and Visual Studio will sometimes have a compatibility issue where something called Intellisense does not work. Intellisense is your code completion, and much more. It should be fixed immediately.
    Step 1:
    Close Visual Studio
    Step 2:
    In Unity, go to Edit < Preferences < External Tools (left part of the Window)
    Step 3:
    In External Tools go to the part that says External Script Editor (this should be on which ever Visual Studio editor you are using (for me it defaulted to "Open by File Extension"
    Step 4:
    Make sure Generate all csproj files are checked, and Editor Attaching is checked
    Step 5:
    Open the C# script you were trying to open earlier
    Hope this Helps
    Currently using
    - Unity 2019.3.3f1 Personal
    - Visual Studio 2019

    • @laciminecraft9
      @laciminecraft9 Před 3 lety +64

      Thank you mate! for a moment I thought all hope was lost.

    • @dd-fz3ku
      @dd-fz3ku Před 3 lety +17

      Thank you soo much!

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

      Thanks that saved five hours of searching for help

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

      im confused it helped it but it keeps dissapearing

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

      U R THE BEST!! for a moment I thought all hope was lost...
      XD

  • @gingercap4803
    @gingercap4803 Před 3 lety +55

    You had me in the first episode, not gonna lie

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

      Same bruh I hate programing

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

      @@stew1310 programming is fun lol

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

      ​@@karolingston true, programming is like a dark cave but with jewels inside, you can get stuck, and it's hard to get out sometimes but in the end...
      you die of the errors you are getting

    • @craz2580
      @craz2580 Před 3 lety

      Lol, i didnt even tryed it yet

    • @inf1nite33_9
      @inf1nite33_9 Před 3 lety

      @@karolingston PorRogRMMAInaG I S SOO sFUUFnf jNn! true but its not

  • @zamcar4452
    @zamcar4452 Před 3 lety +49

    Me wanting to create a normal game: CZcams come here I need help. Me after figuring out I can send cubes to kick the fcking sun in unity:this is fine.

  • @jefflam4031
    @jefflam4031 Před 3 lety +939

    "The image refreshes multiple times per second!"
    My potato laptop: Haha no not doing that

  • @ryan-levy
    @ryan-levy Před 3 lety +327

    "We can see that everything looks fine, but there's one problem."
    Any programmer will resonate with this sentence. If you think it works the first time, then the code is lying to you.

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

      So true xD

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

      The referenced script (Unknown) on this Behaviour is missing! IT IS COMIN WHEN I AM WRIGHT public Rigidbody rb;

    • @shauryapatel8372
      @shauryapatel8372 Před 3 lety

      @DanielUlrich Ramos I guess its programmer instincts? i never realized i capitalized it

    • @MicahFranco
      @MicahFranco Před rokem

      @@shreydaga7918 bro fkin samemeee

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

      Using the while loop...oh my god

  • @tombrudos4645
    @tombrudos4645 Před rokem +6

    5 years old and it still holds up great

  • @ijustmakegamesnow906
    @ijustmakegamesnow906 Před 2 lety +14

    Thank you, Brackeys for doing these. I also started making games (my first was the control system for a fighter jet in a flight sim I made) in the game and physics engine in Blender. And now, partly from you, I'm learning C# and Unity. Thank you again.

  • @mr.crazyface1684
    @mr.crazyface1684 Před 4 lety +838

    For Visual Studio 2019 I had issues with getting IntelliSense(Auto Complete) to work with unity. To fix this I closed Visual Studio, went to Unity then Edit -> Preferences -> External Tools -> External Script Editor. Set it to Visual Studio (your installed version of VS). When I re-opened Visual Studio by double clicking the script, everything then worked.

    • @crispybiscuits823
      @crispybiscuits823 Před 4 lety +27

      Thank you so much I was having so much trouble ur a life saver.

    • @Sriram-tp7vf
      @Sriram-tp7vf Před 4 lety +6

      Really helpful comment, Thank you so much

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

      Thanks! That's exactly the comment I've been looking for! :D

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

      You're the hero no one asked for but everyone needs

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

      thanks man it works !

  • @ImSublien
    @ImSublien Před 4 lety +686

    *me having problems with the cube going backwards*
    *adds a negative sign and it works*
    me: i got big brain

    • @imquit1508
      @imquit1508 Před 4 lety +9

      hihi mine is not moving

    • @griffin7670
      @griffin7670 Před 4 lety +80

      what if....
      *you were looking backwards*

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

      Hey please help sir the hello world dosent appear on console

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

      It says rigid body dosent contain a definition for user gravity

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

      lets go theres a 2020 boy here

  • @unknownid530
    @unknownid530 Před 8 měsíci +2

    6 years later and still ur the best sad that you leave but i will continue to learn from you

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

    now that i have started coding nothing makes me more happy in life than finally after 5 hours fixing a bug in my code in unity

  • @Traventine
    @Traventine Před 3 lety +161

    "Physics determined by frame rate? That's not a bug, it's a feature." -Todd Howard

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

      so true

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

      -Robtop games

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

      -tf2 devs making demoknight

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

      It just works

    • @suraj98222
      @suraj98222 Před 2 lety

      I think the reason is that C# is not necessarily built for Unity and function could be used in other ways rather than limiting it on Framerate

  • @Zeriel00
    @Zeriel00 Před 5 lety +821

    You know a programming tutorial is going to be good when it starts with Hello World! xD

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

      but what if it starts with Yoylecake

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

      alie

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

      Yea,

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

      Every single tutorial I've ever learned had Hello World. So who started this? I've been a developer for 35 years and it was before my time. ;P

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

      @@GaryParkin Brian Kernighan and Dennis Ritchie: in 1978 en.wikipedia.org/wiki/The_C_Programming_Language

  • @kilby-cj4ri
    @kilby-cj4ri Před 3 lety +117

    "Hello, World!" the first thing you will code in every language.

  • @adityajhunjhunwala2471
    @adityajhunjhunwala2471 Před rokem +2

    Hands down the best unity tutorial out there

  • @stellarsymphony7214
    @stellarsymphony7214 Před 4 lety +790

    Episode 1: Wow I'm so good! Game design is so simple!
    Episode 2: Hello darkness my old friend....

  • @ritankarsaha1982
    @ritankarsaha1982 Před 5 lety +118

    I like how u don't give a dope dubstep remix track after u say lets jump right into it

    • @Levi-ll2tx
      @Levi-ll2tx Před 4 lety +1

      OH MY GOD GUYS WILL IT WORK?!??!?!?!??!??

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

      I very much agree with this sentiment

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

    THanks man you have made such a brilliant series for beginners ,appreciate your hardwork

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

    I love your tutorials man thank you so much. It honestly helps a lot and the way you speak is so easy to understand.

  • @willpetillo1189
    @willpetillo1189 Před 3 lety +331

    For those using this as a reference or wanting to review specific parts of the lesson, here are some timestamps of interest:
    0:14: Creating a Script.
    1:15: First look at C# code in Unity.
    2:03: Printing to the Console (using the Start method).
    3:33: Changing the value of a component through code to turn off gravity.
    4:54: Using function arguments to apply force to a Rigidbody
    5:40: Applying force over time (using the Update method).
    6:27: Making your code frame-rate independent with Time.deltaTime
    8:11: Physics Best Practices: using FixedUpdate
    8:37: Writing comments to make your code easier to understand

  • @jonathanfowler2932
    @jonathanfowler2932 Před 7 lety +269

    This is a really well made tutorial. Videos like these really help make unity and C# seem less intimidating. I haven't found a Unity tutorial nearly as good as this one, and i'm really glad that I've found it.
    Thank you for making this.

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

      This tutorial is also great for brushing up on old skills without too much fluff.

  • @ayanxd05
    @ayanxd05 Před 3 lety +16

    for anyone who has problems unchecking the use gravity by the code make sure you have dragged the rigidbody component into the script's rb part. it only works after you have done that . i had the same problem too .

    • @chrishillin9463
      @chrishillin9463 Před rokem +1

      Can you explain this a bit more?

    • @rodriquesharrier443
      @rodriquesharrier443 Před rokem

      @@chrishillin9463 look at 4:00 - 4:16 in the video and you will see him do it were he dragged the rigidbody component into the script's rb part
      im bad at explaining but hope this helps

    • @mayplus
      @mayplus Před rokem +1

      I'm having trouble even getting rb to appear. Got any idea why?

    • @Kaiju_222
      @Kaiju_222 Před 8 měsíci

      Thank you so much!

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

    Thanks! I really wanted to start making games and this is really helping me understand how some of the systems work

  • @amaproduction2314
    @amaproduction2314 Před 3 lety +346

    ("Hello, World!")
    E R R O R

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

      @Holden Jordan sure I'll tell you if it worked.

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

      @The Void thanks I was so confused

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

      @The Void Lol so it's Debug.Log("Hello, World"); with the;
      thx

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

      @@radkocodex1033 you just ruined like that snit

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

      R.I.P game

  • @youssefazaaz
    @youssefazaaz Před 7 lety +660

    I am an intermediate unity user, but I watch these videos. I ADMIRE BRACKEYS

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

      Me2

    • @Zxios
      @Zxios Před 7 lety +25

      I've been programming for 8 years now and I laughed when he said "a lot of scary stuff here" :P But I really don't know how to use Unity lol

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

      Zxios I can't get the rigid body rb; part to work can you help me

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

      @Frost Bite. If you have the reference typed out like you have it above then I see 2 issues, first you have a space between the words rigid and body, it is written as just one word. The second issue is capitalization, when creating a reference to a rigidbody you have to capitalize the R, so it should read public Rigidbody rb; (notice how public is not capitalized but the R in Rigidbody is capitalized)
      If you do have this typed out properly then my next guess would be that you have not dragged the rigidbody component into the inspector.
      both of these problems would flag an error in your console. if you get an error that says "Unassigned Reference Exception" this means you need to drag the component into the inspector. If your error reads "PlayerMovement does not contain a definition for "rigid body", it means that you have incorrectly typed out the public Rigidbody rb; in your script (for this example anyways).
      I hope this helps :)

    • @Rob-hm4jx
      @Rob-hm4jx Před 6 lety

      how old r u?

  • @JosaxJaz
    @JosaxJaz Před rokem +2

    To anyone new coming in and being confused like I was:
    In the beginning he adds a new component, a script, and chooses the programming language. You probably won't see the option to pick a language. Since he made this video, it has changed and now C# is the only language unity uses, so you don't have to worry about that, just create a script and follow from there!

    • @plasayara
      @plasayara Před rokem

      The script doesn't work tho
      using UnityEngine;
      public class PlayerMovement : MonoBehavior {
      // This is a reference to the Rigidbody component called "rb"
      public Rigidbody rb;
      // We marked this as "FixedUpdate" because we
      // are using it to mess with physics.
      void FixedUpdate ()
      {
      rb.AddForce(0, 0, 2000 * Time.deltaTime); // Add a force of 200 on the z-axis
      }
      }

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

    I'm really enjoying the videos so far. Usually on most tutorials it doesn't explain very well and just doesn't work. I only had one bug which was when I was constantly trying to move the block forward and I couldn't get it to work. After 5 minutes I realised I wrote RB instead of rb.

  • @StylizedSchools
    @StylizedSchools Před 5 lety +42

    I'm a game artist for 4 years now, wanted to learn a bit more about the whole process of making a game and dip my toes in. I was following a course on udemy, was getting totally lost had no idea how any of it worked, saw a comment recommend this channel. Wow, so much better! you explain everything so well and in a logical path I already understand more in 30 minutes than 5 hrs on that course. Thanks dude!

  • @ethanlopez3031
    @ethanlopez3031 Před 5 lety +89

    Brackey:”Let’s enjoy our results” Becomes quiet and watches the cube slowly roll away lol.

  • @fallbladew967
    @fallbladew967 Před rokem +2

    I was really worried that the coding wouldn't work since I have to use something else, glad it all went well.

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

    you actually make programming alot more fun with ur voice, unlike other people

  • @jaxonharrisoldchannel4953
    @jaxonharrisoldchannel4953 Před 4 lety +300

    If your game looks ugly press "Auto Generate Lighting Off" in the bottom right corner and in "Enviorment Lighting" Click "Source" and Change it to your liking!
    .
    Please like if this was helpful!

    • @yahiaghadiry9885
      @yahiaghadiry9885 Před 4 lety +9

      For more details if you want it exactly like brackys':
      choose color and make it white
      Thank you for your comment Jaxon very helpful

    • @neerurathore8969
      @neerurathore8969 Před 4 lety

      Help me how to save everytime when you write something in Microsoft visual studio and go back to unity

    • @yahiaghadiry9885
      @yahiaghadiry9885 Před 4 lety

      @@neerurathore8969 press ctrl and s
      or at file and then save

    • @neerurathore8969
      @neerurathore8969 Před 4 lety

      @@yahiaghadiry9885 thank you!

    • @yahiaghadiry9885
      @yahiaghadiry9885 Před 4 lety

      @@neerurathore8969 You are welcome.

  • @urubonzyt3773
    @urubonzyt3773 Před 4 lety +752

    Him: You will use visual studio
    Me: Using Notepad

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

    I'm a beginner in both game making and programming. You made this really understandable, and now I'm excited to get back into making games! :)

    • @1nterlinked_
      @1nterlinked_ Před 2 lety

      Can u tell me how u improved in these 10months now, if u continued ofc

    • @zeeba3999
      @zeeba3999 Před 2 lety

      @@1nterlinked_ Nice try, Russia!

    • @1nterlinked_
      @1nterlinked_ Před 2 lety

      @@zeeba3999 ? I asked a question ??

    • @zeeba3999
      @zeeba3999 Před 2 lety

      @@1nterlinked_ was making a joke based on the name, mate. Apologies - sadly new work situation and dealing with a death in the family (plus all the paperwork involved) hasn't left me much time for hobbies, much to my disappointment.

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

      @@zeeba3999 oh ok, sry, hope it gets better for u

  • @dwaghe2444
    @dwaghe2444 Před 3 lety

    Holy cow!!
    how can someone be so amazingly good at teaching
    thank you so much!!

  • @prabhie9747
    @prabhie9747 Před 5 lety +137

    void start()
    {
    Debug.Log("Awesome Video Really Helped Me Alot. Thanks");
    }

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

      By the way, it needs a capital S for start

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

      @@olivenest Wow ok I'm gonna need a lot of time to learn all the capital or non capital words

    • @zachd8916
      @zachd8916 Před 4 lety

      @@loptheflop9615 same lol

    • @thebasicvideogamedesigner5342
      @thebasicvideogamedesigner5342 Před 4 lety

      @@olivenest You have saved me

    • @Anonymations
      @Anonymations Před 4 lety

      Learn them like the scps, when you use them for long enough you remember them

  • @rogertsang4865
    @rogertsang4865 Před 4 lety +131

    I recommend Fallout 76 developers to go through this video and learn about Time.deltaTime.

  • @mr.mystical9776
    @mr.mystical9776 Před 3 lety

    I would gladly watch ads in these videos to help you earn money, but having no ads is awesome too!

  • @Irish-Marxist
    @Irish-Marxist Před 3 lety

    ngl best tutorial i have ever had, really helping me get into coding

  • @koaboa
    @koaboa Před 4 lety +60

    This was more informative than a whole year of programming in school

  • @skyrym
    @skyrym Před 4 lety +238

    For 2019.3+ versions of Unity the Debug.Log("Hello, World!"); is replaced by
    UnityEngine.Debug.Log("Hello World!");

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

      It's still working for me 🙄

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

      @@breeze2440 nice

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

      Debug.Log seems fine on mine too.

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

      @@Galdethriel hm, im using 2019.3.12f1

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

      @@skyrym I found what's going on here It didn't work for me too when I forget to remove
      using system.Diagnostics , it's in first upper lines

  • @blueleap
    @blueleap Před rokem

    Best tutorial, and I’ve watched a lot of them so far.

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

    Best game programming on CZcams.

  • @goose4262
    @goose4262 Před 4 lety +203

    wait so you're telling me fallout 76's speedy glitch where you go faster the higher your framerate, could be fixed, with *just Time.deltaTime!?*

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

      Yeah, big brain ( ͡o ͜ʖ ͡o)

    • @goose4262
      @goose4262 Před 4 lety +35

      @@XxBrazza45 when i learned fallout 76 was made by a rookie team at Bethesda, I didn't realise they were talking about REALLY rookie

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

      @@goose4262 Well they didn't put the time /effort in this game (Same texture, same glitch). That's why it's a absolute mess

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

      The game wasn't made in unity so... no

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

      @@larsderoover Yeah but I'm sure their engine has an equivalent to that. It's most likely just not called Time.deltaTime

  • @stine3239
    @stine3239 Před 6 lety +378

    for anyone having trouble with anything with the Rigidbody use
    rb = GetComponent();
    at the beginning of the void start()

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

      thanks

    • @buyardent4me
      @buyardent4me Před 6 lety +41

      this shit helped alot. But can't understand why this only
      public Rigidbody rb;
      doesn't work for me

    • @VYKco
      @VYKco Před 6 lety +6

      thanks, this must be like making an instance of a method, i've only have coding experience in java and python. Why didn't he include this in the video?

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

      Thank you so much

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

      Thanks

  • @StevenLoprese
    @StevenLoprese Před rokem +5

    I just spent half an hour giggling to myself while I stacked up red cubes into pyramids and smashed a different red cube into them over and over again like a small child playing with blocks. My wife is not impressed. But i had fun.

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

    I've been developing on Roblox for about two years, but this looks awesome. The code seems rather familiar, and I also have some C++ experience. Can't wait to watch the next video!

  • @opalthediloalt9595
    @opalthediloalt9595 Před 6 lety +296

    When it said “Hello world!” In the console for me I said... “YEEEEEESSSSSS!!!!” But hay, when you don’t know how to code and something works you have to celebrate the little things.
    Yay, I am following the directions right!

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

      You and me both dude xD when I got that to work and with the deltatime, I spent more time doing victory dance than actually looking at the video to recap xD

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

      I literally did everything right and it won't wooorkkkkkk 😂

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

      Same here,cube falls but no Hello World. checked and rechecked, everything appears correct. ????????

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

      Nothing wrong with celebrating your first line of code. I Still remember my first time typing print("Hello World") in lua. IT WAS AMAAZIIIING

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

      Lol it's just a debug log

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

    You’re a fantastic teacher, dude.

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

    I am really impressed with your tutorials. They're easy to follow, step by step, and well organised.

  • @howwasthatnotaheadshot2421

    this person who made these tutorials is really good at explaining how everything works i would recommend this to one of my friends

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

    I'm so glad I found your videos. I'm starting college for Game Programming this fall but wanted to get a head start with Unity. But once I opened it up I was overwhelmed by all the stuff going on and my complete lack of understanding for the engine! You're videos are helping me a lot. Thanks, dude.

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

    after like 15 minutes i finally got the first code working. Thanks for teaching for free!

  • @dani.mp4777
    @dani.mp4777 Před 2 lety +1

    thank you so much for this!
    it really helps that i love your voice and your accent 🤣 helps me concentrate

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

    please, people. if something doesent work, first check that you dident miss anything in the tutorial. its easy to go on autopilot when watching tutorials.

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

    Tbh i cant believe your doing this for free.I can find everything i need on your channel from coding to actual game development.Tysm

  • @GladiatorY
    @GladiatorY Před 3 lety

    Im 13 yrs old and this looks very cool. Thank you brackeys. Very Cool👍

  • @Brinorp
    @Brinorp Před 3 lety +49

    Episode 1- OMG, Im so good!
    Episode 2-Dosent know how to download the script writer...

    • @ananttiwari1337
      @ananttiwari1337 Před 3 lety

      You can use atom or even notepad.

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

      man u have to download vscode or visual studio thats all . Then go to preferences in unity and choose vscode or visual studio thats all u are now done!

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

      @@visaganixa8986 thanks

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

      @@visaganixa8986 you are a life savior!!

    • @supernova195
      @supernova195 Před 3 lety

      @@killaon_ttv8942 i hit the wrong one

  • @greentruthful1968
    @greentruthful1968 Před 3 lety +56

    Took me like 105321 years to get visual studios working.
    "30-day period has expired???"
    "Please log in with microsoft"
    "Password incorrect"
    "Password incorrect"
    "Forgot password"
    "Code has been emailed"
    "Your password has been changed successfully"
    "Password incorrect"

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

      my visual studios wont even come up. i tried clicking it but it wont come up can you or someone help me with it

    • @greentruthful1968
      @greentruthful1968 Před 3 lety

      @@suj13 i dont even remember what I did but I probably found the answer on some random forum

    • @crustboy1056
      @crustboy1056 Před 3 lety

      bruh, i littelary just went thru all that lmao

    • @kuma7021
      @kuma7021 Před 3 lety

      @@suj13 did you solve the problem? because i have the same problem

    • @suj13
      @suj13 Před 3 lety

      @@kuma7021 hey. Yeah I did all you gotta do is download it from Google type up "visual studios" download a version and go to a entry unity project and make a c# script once that's done double click the scrip or press edit script and choose what app you want to view the script in (visual studios) and you'll get it! It's very useful after you've done it!

  • @gamzguns
    @gamzguns Před 7 měsíci +1

    you're a great teacher thank you for these tutorials!!!

  • @timeforrice
    @timeforrice Před 2 lety

    Great Tutorial!!! Love the detail and the quality!

  • @ppunz
    @ppunz Před 4 lety +9

    Omg this dude is goat (greatest of all time). he made my family and software engineer dad proud! thanks tons :)

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

    Me writing code peacefully and trying to go along with the video
    Brackeys: *I AM SPEED*

  • @tarvasv.2540
    @tarvasv.2540 Před rokem

    I was looking for a normal crack for a long time and stumbled upon you, thank you very much

  • @user-rf5jb4go9i
    @user-rf5jb4go9i Před 2 lety

    Daaaamn bro you explain much better than some guys do in my language so i'll beter watch you even though my english is not perfect! thank you so much.

  • @mingangxu2125
    @mingangxu2125 Před 4 lety +28

    Brackeys: shows me how to do anything
    Me after watching 1000 CZcams unclear tutorials: years of academy training wasted!

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

      Fully agree, this guy is truly amazing!

  • @ptsg
    @ptsg Před 7 lety +106

    Man, these videos are really good made! it explains well how the basics (so far) of coding and programming works. If it is fine by you, I will refference this playlist in my research for school, where I look what I can do with unity for the first time. Thx to you, I got into unity :)

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

      I would be honored! Glad you like them :D

    • @nguyenminhle6959
      @nguyenminhle6959 Před 7 lety

      Sander Koldenhof q

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

      when you did the rigidbody after public it did not work can u help me

    • @simplyangeleyes
      @simplyangeleyes Před rokem

      @@jaydenrachal1655 fr it didnt work for me either

  • @football_league0
    @football_league0 Před 16 dny +1

    This guys unitys blender guru

  • @SebLeCaribou
    @SebLeCaribou Před 3 lety +8

    I'm going to say this without wanting to diminish the merit and quality of this tutorial series (which is great), OR without wanting to hinder anybody trying to get into making games without learning programming first, because a lot of great indie game designers and developers are not programmer at heart. But I now truely believe...you won't drop learning to make games that easily if you learn coding first, especially to really get what's going on here with Unity.
    Like I started making my little 2D projects on GMS1.4 and RPG Maker (I'm way more a 2D character artist at heart) almost ten years ago, never finished one, and the barrier of entry was way lower than this. I had other stuff to do, but also, I got frustrated with every technical issue. I remember already getting stuck four years ago on GMS because It was hard to code a script for a typewriter effect on text display (like dialogues and whatnot) and feeling very disheartened by the fact that I just didn't understand the videos explaining how to do that. All because going through an array or a string using indexes, or for/while loop were not things I took interest for beforehand.
    Since then, I became a webdev (fullstack JavaScript) and for my new job, I need to learn C# and .NET. And WOAW. Unity is way simpler than I thought it would be. Thanks to the quality of the tutorial, YES, absolutely. But also because I spent 45 hours the past week learning the basics of C# for a maintenance job, AND I already have a training in development (only six month okay, I'm not a computer engineer).
    So just a piece of advice, for those who can afford a little time on the side: learn just a little programming and C# syntax before getting into Unity. You'll see, you will be way more at ease, and there will be less chances of you dropping this at the very beginning of this great tutorial series.
    Go on France.ioi (www.france-ioi.org/index.php?sLanguage=en) select any language (preferably Python that has a pretty simple syntax) and do the first 50 exercises; it will wake up a little bit of Math and it'll teach you the two or three tricks that you will need to use constantly (the loops, if statements, types basically). If you want more of these, go to Codewar and do level 8, 7 and 6 if you can.
    And also, go to Brackeys C# basics (czcams.com/video/N775KsWQVkw/video.html), go to CodeCademy and do the first two or three modules explaning the syntax of C# (www.codecademy.com/learn/learn-c-sharp) even though not everything will be useful for Unity, you'll understand the basics of strongly typed language and why certain declaration of variables will look like you are stating the same thing thrice...
    I know it doesn't look like a lot of fun at first, but I promise it's worthwhile, and all these ressources are free! I wish someone had showed me that years ago, I would've probably be a webdev for years now, and maybe a gamedev too...
    Have fun making games!

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

      You are 100% right. I have been coding since I was 10 years old and coming into Unity is still daunting. If I wasn't an experienced (amateur, to be clear) programmer already this would be too overwhelming. If I didn't have a grasp on basic programming concepts/problem-solving skills/data structures/etc etc etc... this would be a pretty silly thing to try and learn. I'm embarrassed even looking at my code from three years ago
      It makes me sad to think how many creative people are out there who want to make a game but just let it die because they bite off too much at once. The ONLY way to get good
      at coding is to start small :/

    • @abhaykeshwala1638
      @abhaykeshwala1638 Před 2 lety

      Hey thanks for the advice just started with unity watched ep 1 and havent got to coding yet. Do you reckon I should complete this little mini-game and then learn to code or after?

    • @WYCD
      @WYCD Před rokem

      Man, I cannot thank you enough. Across all the internet I have searched for someone who could explain where a genuine beginner should start. Not only that, but you've taken the few extra minutes on your end to save me hours of searching for that stuff.
      If CZcams had awards for comments, you'd have just got one from this old chunk of coal.

  • @louis-philip
    @louis-philip Před 4 lety +4

    This is so well put together, thank you! I'm coming from a programming background wanting to create games, and my head just exploded with possibilities.

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

    For those ones using Visual Studio Community and your code doesn't auto complete while typing or you don't see code suggestions:
    Go to Unity >> Edit >> Preferences... >> External Tools >> Change "External Script Editor" to Visual Studio Community.
    I'm a beginner and had a hard time figuring this out. Hope this helps. Happy Coding! 😊

  • @Potato_Pizzer
    @Potato_Pizzer Před 2 lety

    It's super easy to understand and very fun, new sub!

  • @ALisgoofy
    @ALisgoofy Před rokem

    The best unity tutorial bro, I had a lot of fun :D

  • @laserbean00001
    @laserbean00001 Před 4 lety +10

    I just want to say that these tutorials are, so far, really helpful as I have experience in C and it's, so far, the same as C#;

  • @meryyy0388
    @meryyy0388 Před 4 lety +68

    If you 're using this tutorial with last version. you ll have to put this:
    UnityEngine.Debug.Log ("message")
    instead of Debug.Log

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

      thank you.

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

      I love you

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

      and if thats doesnt work??

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

      @@forward8204 i suggest to copy the problem exactly and directly to the google bar, thats what i did

    • @-TBH-
      @-TBH- Před 4 lety +1

      @@forward8204 ​You need to attach the script to a game object or else the script will not activate.

  • @akshitabhatt3345
    @akshitabhatt3345 Před rokem

    He is the most nice youtuber which make game development fun I like this guy

  • @Gunner98
    @Gunner98 Před 2 lety

    Thanks. Coding would have been a big nightmare for me without you

  • @alexanderkonig577
    @alexanderkonig577 Před 4 lety +44

    The text in my script doesn’t have different coleurs. Does anyone no why or how to change it?

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

      i too have this problem

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

      me too

    • @weil2496
      @weil2496 Před 3 lety +8

      The problem occurs because Visual Studio Tools for Unity is not installed. You all can refer to these websites to solve the problem:
      stackoverflow.com/questions/42597501/autocompletion-not-working-in-visual-studio
      docs.microsoft.com/en-us/visualstudio/cross-platform/getting-started-with-visual-studio-tools-for-unity?view=vs-2019

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

      if you already have Visual Studio, another comment said this:
      in unity you should go to:
      > Edit
      > Preferences (click)
      > External tools(click)
      > external script editor
      > choose visual studio

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

      colors*

  • @tri-starsgames7779
    @tri-starsgames7779 Před 5 lety +7

    You are the Ali-a of unity brother TriStars Games thanks you for helping us with your Tutorials
    Ps. We are so glad you are not monotoned lmao 😂😄🤣

  • @BinhTinh-yg4wg
    @BinhTinh-yg4wg Před rokem

    BROOO thankyou so much, this really helped and the tutorial was really easy to use as well :)

  • @x_shadowslayer_x
    @x_shadowslayer_x Před 3 lety +12

    I’m crying-
    Thank you so much for making an understandable tutorial for programming! It makes developing games actually seem possible!

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

      (If it would actually work)

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

    I just starting making video games yesterday so I went here to make my first one has an example. You are very well explained and that makes this a lot more easier then normal. Thank you!

  • @junlge1513
    @junlge1513 Před 6 lety +13

    Tutorial: "Im just gonna add another zero"
    Me: *Adds two zeros*

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

    ty so much i love this series

  • @privatekamal3247
    @privatekamal3247 Před rokem

    thank you very much its my first time using unity and I didn't know what to do your every game devellepor savor

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

    6:24
    That cube player went YEET!

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

    You halped me a lot with every your tutorial

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

    for those of you who cant put rb on the script, you must double click on the script from the player properties not from the bottom screen

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

      Still doesn't work :/
      Edit: Make sure to save the code, then it works

  • @osman6679
    @osman6679 Před rokem

    these videos really helped me a lot in making games
    Thanks...😃😃😃

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

    Please do this series daily, i am really inspired by you :)

  • @MichaelGonzalez-ly9uo
    @MichaelGonzalez-ly9uo Před 5 lety +6

    The pacing is great, CZcams had this great feature that allowed me to go back in the video if I missed anything. Guys you should check it out!

  • @ViranMusick
    @ViranMusick Před 3 lety

    Thank you so much man you're so much better than my uni.

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

    Thanks Jesus dude, your tutorials are awesome

  • @telemonofficial6924
    @telemonofficial6924 Před 5 lety +219

    Cool tutorial, but the Udemy commercial is seriously start to annoy me >:(
    Edit: And now the Code Monkey! D:

  • @humidharolddeadgamingchann1791

    “public” turned blue but “Rigidbody” didn’t turn yellow.

    • @WinBlah
      @WinBlah Před 4 lety +52

      in unity you should go to:
      > Edit
      > Preferences (click)
      > External tools(click)
      > external script editor
      > choose visual studio

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

      it happens to me too. Did you solve the problem? Let me know plz how can I fix that

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

      Thank you sir. You are of the essence of Pixar’s Up. By that I mean you are wonderful. Have a good day, and try not to slip over a banana peel. Godspeed.

    • @palomapaloma811
      @palomapaloma811 Před 3 lety

      @@WinBlah Thank you good man

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

      @@WinBlah use monokai colour theme, for vscode