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

Поділитися
Вставка
  • Опубліковано 31 січ 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...

КОМЕНТАРІ • 8 тис.

  • @rbayuardana
    @rbayuardana 4 роки тому +5002

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

    • @thijslumeij
      @thijslumeij 4 роки тому +61

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

    • @JuvenylAssassin
      @JuvenylAssassin 4 роки тому +21

      @@thijslumeij i am having the same issue.

    • @noalaor5714
      @noalaor5714 4 роки тому +16

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

    • @thebass4511
      @thebass4511 4 роки тому +29

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

    • @thebass4511
      @thebass4511 4 роки тому +25

      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 6 років тому +4560

    These tutorials are better than paid ones on Udemy

    • @zobe3074
      @zobe3074 6 років тому +299

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

    • @BlazertronGames
      @BlazertronGames 6 років тому +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 6 років тому +84

      Well to be fair, anyone can make tutorials on UA-cam.

    • @BlazertronGames
      @BlazertronGames 6 років тому +79

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

    • @greenballscience9514
      @greenballscience9514 6 років тому +10

      I got an ad for udemy

  • @BOTTLEDSPRITE
    @BOTTLEDSPRITE 3 роки тому +341

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

    • @meriseath3504
      @meriseath3504 3 роки тому +4

      lol same with me

    • @drudru8811
      @drudru8811 3 роки тому +1

      Same wtf

    • @raywu415
      @raywu415 3 роки тому +4

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

    • @SLIME-gx6fo
      @SLIME-gx6fo 3 роки тому

      @ARYA RASOOLY thanks dude

    • @themineballoner3652
      @themineballoner3652 2 роки тому +1

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

  • @biologicalseed777
    @biologicalseed777 3 роки тому +554

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

    • @xmgamer5672
      @xmgamer5672 3 роки тому +87

      Oh your wondering what Karlson is?

    • @digvijaysingh5290
      @digvijaysingh5290 3 роки тому +50

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

    • @crustboy1056
      @crustboy1056 3 роки тому +57

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

    • @rethishrams6168
      @rethishrams6168 3 роки тому +37

      So slap wishlist now GAMERS

    • @GenericSoutheastAsian
      @GenericSoutheastAsian 3 роки тому +18

      Buy milk

  • @fret2fret221
    @fret2fret221 3 роки тому +855

    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

    • @DoctorNoobGamingYT
      @DoctorNoobGamingYT 3 роки тому +11

      SAME!!!

    • @pythonautomaton4695
      @pythonautomaton4695 3 роки тому +6

      @@DoctorNoobGamingYT LOL

    • @spartanv0
      @spartanv0 3 роки тому +29

      Well when you're just starting out you get happy about the smallest details which is good.

    • @brucelee7782
      @brucelee7782 3 роки тому +3

      She was probably like mehh

    • @moonpotatoes7452
      @moonpotatoes7452 3 роки тому +7

      This comment was 7 months ago how far have you gotten now? im curious.

  • @mememan6198
    @mememan6198 3 роки тому +2059

    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 3 роки тому +64

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

    • @dd-fz3ku
      @dd-fz3ku 3 роки тому +17

      Thank you soo much!

    • @soup8195
      @soup8195 3 роки тому +32

      Thanks that saved five hours of searching for help

    • @gavinatrix
      @gavinatrix 3 роки тому +5

      im confused it helped it but it keeps dissapearing

    • @thulasidharand8806
      @thulasidharand8806 3 роки тому +6

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

  • @gingercap4803
    @gingercap4803 3 роки тому +54

    You had me in the first episode, not gonna lie

    • @stew1310
      @stew1310 3 роки тому +1

      Same bruh I hate programing

    • @karolingston
      @karolingston 3 роки тому +1

      @@stew1310 programming is fun lol

    • @damnatioodiosis5537
      @damnatioodiosis5537 3 роки тому +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 3 роки тому

      Lol, i didnt even tryed it yet

    • @inf1nite33_9
      @inf1nite33_9 3 роки тому

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

  • @zamcar4452
    @zamcar4452 3 роки тому +49

    Me wanting to create a normal game: UA-cam 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 3 роки тому +938

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

  • @ryan-levy
    @ryan-levy 3 роки тому +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 3 роки тому +6

      So true xD

    • @shreydaga7918
      @shreydaga7918 3 роки тому +1

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

    • @shauryapatel8372
      @shauryapatel8372 3 роки тому

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

    • @MicahFranco
      @MicahFranco Рік тому

      @@shreydaga7918 bro fkin samemeee

    • @mahamudashanta3251
      @mahamudashanta3251 10 місяців тому

      Using the while loop...oh my god

  • @tombrudos4645
    @tombrudos4645 Рік тому +6

    5 years old and it still holds up great

  • @ijustmakegamesnow906
    @ijustmakegamesnow906 2 роки тому +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 4 роки тому +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 4 роки тому +27

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

    • @Sriram-tp7vf
      @Sriram-tp7vf 4 роки тому +6

      Really helpful comment, Thank you so much

    • @FeyNyXx_
      @FeyNyXx_ 4 роки тому +5

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

    • @lonelystar25
      @lonelystar25 4 роки тому +7

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

    • @aayushsharma2171
      @aayushsharma2171 4 роки тому +2

      thanks man it works !

  • @ImSublien
    @ImSublien 4 роки тому +686

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

    • @imquit1508
      @imquit1508 4 роки тому +9

      hihi mine is not moving

    • @griffin7670
      @griffin7670 4 роки тому +80

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

    • @zarqa111
      @zarqa111 4 роки тому +1

      Hey please help sir the hello world dosent appear on console

    • @zarqa111
      @zarqa111 4 роки тому +2

      It says rigid body dosent contain a definition for user gravity

    • @kitsu8699
      @kitsu8699 4 роки тому +2

      lets go theres a 2020 boy here

  • @unknownid530
    @unknownid530 8 місяців тому +2

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

  • @lykeas9794
    @lykeas9794 3 роки тому +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 3 роки тому +161

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

    • @kirayoshikage647
      @kirayoshikage647 3 роки тому +1

      so true

    • @jinnans_gd
      @jinnans_gd 3 роки тому +3

      -Robtop games

    • @beef1043
      @beef1043 3 роки тому +1

      -tf2 devs making demoknight

    • @mysticmemer4887
      @mysticmemer4887 3 роки тому +2

      It just works

    • @suraj98222
      @suraj98222 2 роки тому

      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 5 років тому +821

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

    • @NoOffenseAnimation
      @NoOffenseAnimation 5 років тому +4

      but what if it starts with Yoylecake

    • @nebyudaniel2018
      @nebyudaniel2018 5 років тому +1

      alie

    • @DrBotnus
      @DrBotnus 5 років тому +1

      Yea,

    • @GaryParkin
      @GaryParkin 5 років тому +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 5 років тому +4

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

  • @kilby-cj4ri
    @kilby-cj4ri 3 роки тому +117

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

    • @arceususedsplash300
      @arceususedsplash300 3 роки тому +7

      doesnt even work
      Assets\Move.cs(10,15): error CS0117: 'Debug' does not contain a definition for 'log'

    • @bensmart2829
      @bensmart2829 3 роки тому +5

      @@arceususedsplash300 Log with a capital L

    • @echo9dev
      @echo9dev 3 роки тому

      @@arceususedsplash300 yeah Debug.Log(“hello world”);

    • @me-specifically
      @me-specifically 3 роки тому +1

      well, except probably scratch

    • @notanenglishperson9865
      @notanenglishperson9865 3 роки тому

      Thanks, Cap

  • @JosaxJaz
    @JosaxJaz Рік тому +3

    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 Рік тому

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

  • @stellarsymphony7214
    @stellarsymphony7214 4 роки тому +790

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

  • @ritankarsaha1982
    @ritankarsaha1982 5 років тому +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 4 роки тому +1

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

    • @Ikebot
      @Ikebot 4 роки тому +2

      I very much agree with this sentiment

  • @adityajhunjhunwala2471
    @adityajhunjhunwala2471 Рік тому +2

    Hands down the best unity tutorial out there

  • @fahadsartwork
    @fahadsartwork 3 роки тому +2

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

  • @jonathanfowler2932
    @jonathanfowler2932 7 років тому +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 6 років тому +2

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

  • @willpetillo1189
    @willpetillo1189 3 роки тому +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

  • @ayanxd05
    @ayanxd05 3 роки тому +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 Рік тому +1

      Can you explain this a bit more?

    • @rodriquesharrier443
      @rodriquesharrier443 Рік тому

      @@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 Рік тому +1

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

    • @Kaiju_222
      @Kaiju_222 8 місяців тому

      Thank you so much!

  • @mertoj1536
    @mertoj1536 3 роки тому +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.

  • @amaproduction2314
    @amaproduction2314 3 роки тому +346

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

    • @amaproduction2314
      @amaproduction2314 3 роки тому +2

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

    • @Ryan3D_Games
      @Ryan3D_Games 3 роки тому +1

      @The Void thanks I was so confused

    • @radkocodex1033
      @radkocodex1033 3 роки тому +1

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

    • @buzzy2
      @buzzy2 3 роки тому +3

      @@radkocodex1033 you just ruined like that snit

    • @georgelopez4930
      @georgelopez4930 3 роки тому +1

      R.I.P game

  • @youssefazaaz
    @youssefazaaz 7 років тому +660

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

    • @JadenAccord
      @JadenAccord 7 років тому +3

      Me2

    • @Zxios
      @Zxios 7 років тому +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 6 років тому +3

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

    • @LivelyR
      @LivelyR 6 років тому +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 6 років тому

      how old r u?

  • @connorbennett1131
    @connorbennett1131 3 роки тому +2

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

  • @destroyer9241
    @destroyer9241 2 роки тому +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 5 років тому +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 5 років тому +89

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

  • @fallbladew967
    @fallbladew967 Рік тому +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 2 роки тому +1

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

  • @jaxonharrisoldchannel4953
    @jaxonharrisoldchannel4953 4 роки тому +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 4 роки тому +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 4 роки тому

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

    • @yahiaghadiry9885
      @yahiaghadiry9885 4 роки тому

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

    • @neerurathore8969
      @neerurathore8969 4 роки тому

      @@yahiaghadiry9885 thank you!

    • @yahiaghadiry9885
      @yahiaghadiry9885 4 роки тому

      @@neerurathore8969 You are welcome.

  • @urubonzyt3773
    @urubonzyt3773 4 роки тому +752

    Him: You will use visual studio
    Me: Using Notepad

    • @justiswadino333
      @justiswadino333 4 роки тому +7

      Same lol

    • @jaxonplayz6256
      @jaxonplayz6256 4 роки тому +12

      me to but it says error in the concel

    • @ale-pg3xb
      @ale-pg3xb 4 роки тому +7

      when i still i used a mac i used textedit lol it is like notepad but with dark theme lul

    • @kenlinasobirionwu5776
      @kenlinasobirionwu5776 4 роки тому +20

      Download Visual Studio it's free and the best thing u will ever do

    • @kachamchakradhar9586
      @kachamchakradhar9586 4 роки тому +1

      @@jaxonplayz6256 same to me if u find help me

  • @zeeba3999
    @zeeba3999 3 роки тому +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_ 2 роки тому

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

    • @zeeba3999
      @zeeba3999 2 роки тому

      @@1nterlinked_ Nice try, Russia!

    • @1nterlinked_
      @1nterlinked_ 2 роки тому

      @@zeeba3999 ? I asked a question ??

    • @zeeba3999
      @zeeba3999 2 роки тому

      @@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_ 2 роки тому +1

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

  • @dwaghe2444
    @dwaghe2444 3 роки тому

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

  • @prabhie9747
    @prabhie9747 5 років тому +137

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

    • @olivenest
      @olivenest 4 роки тому +11

      By the way, it needs a capital S for start

    • @loptheflop9615
      @loptheflop9615 4 роки тому +5

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

    • @zachd8916
      @zachd8916 4 роки тому

      @@loptheflop9615 same lol

    • @thebasicvideogamedesigner5342
      @thebasicvideogamedesigner5342 4 роки тому

      @@olivenest You have saved me

    • @Anonymations
      @Anonymations 4 роки тому

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

  • @rogertsang4865
    @rogertsang4865 4 роки тому +131

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

  • @mr.mystical9776
    @mr.mystical9776 3 роки тому

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

  • @Irish-Marxist
    @Irish-Marxist 3 роки тому

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

  • @koaboa
    @koaboa 4 роки тому +60

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

  • @skyrym
    @skyrym 4 роки тому +238

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

    • @breeze2440
      @breeze2440 4 роки тому +12

      It's still working for me 🙄

    • @skyrym
      @skyrym 4 роки тому +1

      @@breeze2440 nice

    • @Galdethriel
      @Galdethriel 4 роки тому +4

      Debug.Log seems fine on mine too.

    • @skyrym
      @skyrym 4 роки тому +5

      @@Galdethriel hm, im using 2019.3.12f1

    • @breeze2440
      @breeze2440 4 роки тому +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 Рік тому

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

  • @muhammaduddin9268
    @muhammaduddin9268 2 роки тому +1

    Best game programming on UA-cam.

  • @goose4262
    @goose4262 4 роки тому +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 4 роки тому +11

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

    • @goose4262
      @goose4262 4 роки тому +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 4 роки тому +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 4 роки тому +11

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

    • @gaelsdaddy2341
      @gaelsdaddy2341 3 роки тому +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 6 років тому +378

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

    • @benlloyd6338
      @benlloyd6338 6 років тому +4

      thanks

    • @buyardent4me
      @buyardent4me 6 років тому +41

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

    • @VYKco
      @VYKco 6 років тому +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 5 років тому +3

      Thank you so much

    • @atomixz8064
      @atomixz8064 5 років тому +3

      Thanks

  • @StevenLoprese
    @StevenLoprese Рік тому +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 2 роки тому +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 6 років тому +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 5 років тому +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 5 років тому +3

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

    • @dankanfoush
      @dankanfoush 5 років тому +2

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

    • @RoniKanto
      @RoniKanto 5 років тому +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 5 років тому +1

      Lol it's just a debug log

  • @JacoblBroughton
    @JacoblBroughton 4 роки тому +18

    You’re a fantastic teacher, dude.

  • @CaptainAwesomeVlog
    @CaptainAwesomeVlog 2 роки тому +2

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

  • @howwasthatnotaheadshot2421
    @howwasthatnotaheadshot2421 4 роки тому +4

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

  • @vulduv
    @vulduv 3 роки тому +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.

  • @matex329
    @matex329 9 місяців тому

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

  • @dani.mp4777
    @dani.mp4777 2 роки тому +1

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

  • @brigittedemers1607
    @brigittedemers1607 5 років тому +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.

  • @nikolajovanovic3638
    @nikolajovanovic3638 4 роки тому +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 3 роки тому

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

  • @Brinorp
    @Brinorp 3 роки тому +49

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

    • @ananttiwari1337
      @ananttiwari1337 3 роки тому

      You can use atom or even notepad.

    • @visaganixa8986
      @visaganixa8986 3 роки тому +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 3 роки тому +1

      @@visaganixa8986 thanks

    • @killaon_ttv8942
      @killaon_ttv8942 3 роки тому +1

      @@visaganixa8986 you are a life savior!!

    • @supernova195
      @supernova195 3 роки тому

      @@killaon_ttv8942 i hit the wrong one

  • @greentruthful1968
    @greentruthful1968 3 роки тому +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 3 роки тому +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 3 роки тому

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

    • @crustboy1056
      @crustboy1056 3 роки тому

      bruh, i littelary just went thru all that lmao

    • @kuma7021
      @kuma7021 3 роки тому

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

    • @suj13
      @suj13 3 роки тому

      @@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 7 місяців тому +1

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

  • @timeforrice
    @timeforrice 2 роки тому

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

  • @ppunz
    @ppunz 3 роки тому +9

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

  • @no8053
    @no8053 3 роки тому +6

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

  • @tarvasv.2540
    @tarvasv.2540 Рік тому

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

  • @football_league0
    @football_league0 14 днів тому +1

    This guys unitys blender guru

  • @mingangxu2125
    @mingangxu2125 4 роки тому +28

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

    • @watesub4517
      @watesub4517 4 роки тому +1

      Fully agree, this guy is truly amazing!

  • @ptsg
    @ptsg 7 років тому +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  7 років тому +18

      I would be honored! Glad you like them :D

    • @nguyenminhle6959
      @nguyenminhle6959 7 років тому

      Sander Koldenhof q

    • @jaydenrachal1655
      @jaydenrachal1655 6 років тому +3

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

    • @simplyangeleyes
      @simplyangeleyes Рік тому

      @@jaydenrachal1655 fr it didnt work for me either

  • @user-rf5jb4go9i
    @user-rf5jb4go9i 2 роки тому

    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.

  • @SebLeCaribou
    @SebLeCaribou 3 роки тому +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 (ua-cam.com/video/N775KsWQVkw/v-deo.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 3 роки тому +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 2 роки тому

      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 Рік тому

      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 UA-cam had awards for comments, you'd have just got one from this old chunk of coal.

  • @louis-philip
    @louis-philip 4 роки тому +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 4 роки тому +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 2 роки тому

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

  • @ALisgoofy
    @ALisgoofy Рік тому

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

  • @laserbean00001
    @laserbean00001 4 роки тому +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 4 роки тому +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 4 роки тому +2

      thank you.

    • @qetitchitchinadze5322
      @qetitchitchinadze5322 4 роки тому +3

      I love you

    • @forward8204
      @forward8204 4 роки тому +1

      and if thats doesnt work??

    • @meryyy0388
      @meryyy0388 4 роки тому +1

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

    • @-TBH-
      @-TBH- 4 роки тому +1

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

  • @akshitabhatt3345
    @akshitabhatt3345 Рік тому

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

  • @Gunner98
    @Gunner98 2 роки тому

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

  • @alexanderkonig577
    @alexanderkonig577 4 роки тому +44

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

    • @DoktorekBruh
      @DoktorekBruh 4 роки тому +3

      i too have this problem

    • @arynickson
      @arynickson 4 роки тому +1

      me too

    • @weil2496
      @weil2496 3 роки тому +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 3 роки тому +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 3 роки тому +3

      colors*

  • @tri-starsgames7779
    @tri-starsgames7779 5 років тому +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 😂😄🤣

  • @x_shadowslayer_x
    @x_shadowslayer_x 3 роки тому +12

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

    • @Nualiini
      @Nualiini 2 роки тому +1

      (If it would actually work)

  • @BinhTinh-yg4wg
    @BinhTinh-yg4wg Рік тому

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

  • @perfectlysanecat
    @perfectlysanecat 5 років тому +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 6 років тому +13

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

  • @jikojustaminer811
    @jikojustaminer811 2 роки тому +1

    ty so much i love this series

  • @privatekamal3247
    @privatekamal3247 Рік тому

    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 4 роки тому +11

    6:24
    That cube player went YEET!

  • @Blejo
    @Blejo 7 років тому +19

    You halped me a lot with every your tutorial

    • @psis6786
      @psis6786 6 років тому

      Blajo ha halp ma alat taa

    • @xpalefectx9681
      @xpalefectx9681 6 років тому

      your grammar makes me believe your a kid

  • @bowlorice
    @bowlorice 2 роки тому +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 5 місяців тому

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

  • @osman6679
    @osman6679 Рік тому

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

  • @its_qarma7683
    @its_qarma7683 7 років тому +5

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

  • @MichaelGonzalez-ly9uo
    @MichaelGonzalez-ly9uo 5 років тому +6

    The pacing is great, UA-cam 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 3 роки тому

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

  • @TheBecchus
    @TheBecchus 2 місяці тому

    Thanks Jesus dude, your tutorials are awesome

  • @telemonofficial6924
    @telemonofficial6924 5 років тому +219

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

  • @humidharolddeadgamingchann1791
    @humidharolddeadgamingchann1791 4 роки тому +60

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

    • @WinBlah
      @WinBlah 3 роки тому +52

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

    • @tudorradu5848
      @tudorradu5848 3 роки тому +2

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

    • @humidharolddeadgamingchann1791
      @humidharolddeadgamingchann1791 3 роки тому +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 3 роки тому

      @@WinBlah Thank you good man

    • @nikhiljagtap1669
      @nikhiljagtap1669 3 роки тому +3

      @@WinBlah use monokai colour theme, for vscode