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

  Рет қаралды 2,584,019

Brackeys

Brackeys

7 жыл бұрын

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

Пікірлер: 4 200
@kindapeachy696
@kindapeachy696 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@karlembeast Noob, I typed the code before he even spelled the word "Unity"
@thesodanerd3205
@thesodanerd3205 4 жыл бұрын
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 4 жыл бұрын
@@thesodanerd3205 I was sarcastic.
@medityle1170
@medityle1170 4 жыл бұрын
Caleb Little somewhat of an r/whoosh
@lostmarimo
@lostmarimo 5 жыл бұрын
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
@meganvickers6071
@meganvickers6071 5 жыл бұрын
oh yeah
@GardenAngel5775
@GardenAngel5775 5 жыл бұрын
so true!
@sunkensunshine83
@sunkensunshine83 4 жыл бұрын
The best feeling!
@RealKyklops
@RealKyklops 4 жыл бұрын
to that moment where you make a new game and have to come back to this vid bcs you forgot how to code moving
@razvanefros411
@razvanefros411 4 жыл бұрын
Is started giggling like a toddler
@vermillion8521
@vermillion8521 3 жыл бұрын
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 3 жыл бұрын
He sure is a man of culture
@ibrahem891
@ibrahem891 3 жыл бұрын
he is providing it for free but sure it is better to donate and support his work if you can .
@devscetric7982
@devscetric7982 3 жыл бұрын
@Carlos Basulto he isn't like that, he generally likes to help people out.
@poticleson3371
@poticleson3371 3 жыл бұрын
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 3 жыл бұрын
200th like
@Sentoefn
@Sentoefn 3 жыл бұрын
"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 3 жыл бұрын
thanks
@technoverse1384
@technoverse1384 3 жыл бұрын
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 3 жыл бұрын
@James Thwaites same thing i said just simplified
@yousefshams5474
@yousefshams5474 3 жыл бұрын
​@@Sentoefn life saver
@klmknop
@klmknop 3 жыл бұрын
You’re*
@randomproductions3979
@randomproductions3979 4 жыл бұрын
Brackeys : talks about variables me with my 1 year of scratch experience : "I am four parallel universes ahead of you"
@thehighpriestofpineapples2683
@thehighpriestofpineapples2683 4 жыл бұрын
Me too
@AsRaTCW
@AsRaTCW 4 жыл бұрын
xddddd
@mathiasbrofalk8688
@mathiasbrofalk8688 4 жыл бұрын
same
@lucasqi933
@lucasqi933 4 жыл бұрын
loll same!
@ryang2v
@ryang2v 4 жыл бұрын
Me who is in bed and wanting to start unity the next day: I am 4 parallel universes behind you
@generalwurstwasser4189
@generalwurstwasser4189 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
​@@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 4 жыл бұрын
are you sure it doesn't want us to pay respec
@reallylegit5145
@reallylegit5145 4 жыл бұрын
imagine leaving a comment on a video you didn't watch. 6:23
@generalwurstwasser4189
@generalwurstwasser4189 4 жыл бұрын
@@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 3 жыл бұрын
Thanks a lot for your job! I am proud of that youTube platform has such a great professionals :0
@MalalisJyleErwinD
@MalalisJyleErwinD 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 3 жыл бұрын
@@MalalisJyleErwinD i think you missed a step in ep 2 check again
@GhostSlayerYT
@GhostSlayerYT 3 жыл бұрын
@@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 3 жыл бұрын
@@MalalisJyleErwinD you wrote Getkey instead of GetKey (its case sensitive)
@LucasBrouwers0511
@LucasBrouwers0511 3 жыл бұрын
@@MalalisJyleErwinD just retype it
@yisle2802
@yisle2802 3 жыл бұрын
It's incredible how this amazing tutorials are way better than a whole semester at a university
@conehead2795
@conehead2795 4 жыл бұрын
He puts the " f " at the end of public float numbers to pay respecc
@agentsmith2yearsagoedited597
@agentsmith2yearsagoedited597 4 жыл бұрын
@@kindersmith8407 this is gota be a joke ,hes just pointed out your mistake
@geoffreymaloney8592
@geoffreymaloney8592 4 жыл бұрын
s
@linuxterm7622
@linuxterm7622 4 жыл бұрын
He puts it to define the type
@gradedwarrior4476
@gradedwarrior4476 4 жыл бұрын
Kinder Smith C sharp is case sensitive. Use "Time.deltaTime"
@suciotiffany7269
@suciotiffany7269 4 жыл бұрын
@@kindersmith8407 Time.deltaTime
@wow-sg9mk
@wow-sg9mk 4 жыл бұрын
It's funny how every video has so many less views than the previous. Gotta stay motivated
@secretname2670
@secretname2670 4 жыл бұрын
Basically every video series about anything ever (gameplay or teaching , both got same problem)
@Some0neSomewhere
@Some0neSomewhere 4 жыл бұрын
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 4 жыл бұрын
@@1NabbinatoR thx for the idea XD
@mohammedbenchama5275
@mohammedbenchama5275 4 жыл бұрын
its too hard to continue
@Scarletraven87
@Scarletraven87 4 жыл бұрын
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 10 ай бұрын
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 3 ай бұрын
Hii bro
@ThunderFTW0
@ThunderFTW0 6 күн бұрын
I know right. new to unity and its so helpful to get free assets just to test things with
@frostinstant1892
@frostinstant1892 3 жыл бұрын
I love how he gives us the basics and explains it really well, and then every other thing he explains in understanable
@_tommunist_
@_tommunist_ 7 жыл бұрын
Is it just me, or has the quality of these videos become astounding?
@Brackeys
@Brackeys 7 жыл бұрын
Wow, thanks a lot! Been putting a lot more time into each one :)
@_tommunist_
@_tommunist_ 7 жыл бұрын
Brackeys no problem! I've been watching you for quite a long while!
@furyshiftz
@furyshiftz 7 жыл бұрын
What Number If You Want To Do Backwards Force Please Reply Brackeys
@jimmyhaotran123
@jimmyhaotran123 7 жыл бұрын
simple put, give it a negative number, if you are only asking for going backwards, it should work fine
@sonicsplasher
@sonicsplasher 7 жыл бұрын
Its simple the direction of backwards is -z So do this (0,0,-BackwardSpeed)
@IamStereotype
@IamStereotype 5 жыл бұрын
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 5 жыл бұрын
Don't be silly. You can't make next God Of War game. Sony would sue you for using their title.
@secretname2670
@secretname2670 4 жыл бұрын
@@intru3915 //not gonna lie they got us in thr first half
@medusawitchful
@medusawitchful 4 жыл бұрын
sony will sue you
@danceswithmetroids162
@danceswithmetroids162 4 жыл бұрын
@@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 4 жыл бұрын
daniellord ok but shut up and let the person have their moment thanksbye
@Icanthandle938
@Icanthandle938 Жыл бұрын
5 years later and this code still works
@tamajthelegend4232
@tamajthelegend4232 Жыл бұрын
it didnt for me though :C
@Icanthandle938
@Icanthandle938 Жыл бұрын
@@tamajthelegend4232 damn how come?
@spartan112
@spartan112 Жыл бұрын
Wait, it does not work?
@Icanthandle938
@Icanthandle938 Жыл бұрын
@@spartan112 it does for me but not for tama
@78aspectt
@78aspectt Жыл бұрын
@@Icanthandle938 When I multiply it with Time.deltaTime, it does not work
@pigmentpeddler5811
@pigmentpeddler5811 2 жыл бұрын
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 4 жыл бұрын
I laughed every time I successfully coded the cube and watched it run away. Thanks for the awesome course.
@ragingraven0003
@ragingraven0003 3 жыл бұрын
Same! I giggle and tell my fiance to come see every time I successfully code 😂😂
@Grant-np7jd
@Grant-np7jd 3 жыл бұрын
sameeeee
@saketbakshi4235
@saketbakshi4235 2 жыл бұрын
I showed it to my mom and she said that I am wasting my time... Pain.
@rudrakshkumar6217
@rudrakshkumar6217 2 жыл бұрын
when i press "a" ,it doesn't move left, any help please!!
@bernardodittz3582
@bernardodittz3582 5 жыл бұрын
Coding your own games is easier than you think. You know, you should take this online Unity course.
@mattb6903
@mattb6903 5 жыл бұрын
i can never tell if it says Udemy or Unity lmao
@robloxgameplayfr3841
@robloxgameplayfr3841 5 жыл бұрын
@@mattb6903 same
@TheFishHead2313
@TheFishHead2313 5 жыл бұрын
@@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 5 жыл бұрын
@CJH technicaly yes
@thunder_bear9925
@thunder_bear9925 5 жыл бұрын
I got this ad 1,000 times lol
@truestoriesnocap9959
@truestoriesnocap9959 2 жыл бұрын
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 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 4 жыл бұрын
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 4 жыл бұрын
Help makeing timesplitters rewind :)
@emilegoulard265
@emilegoulard265 4 жыл бұрын
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 3 жыл бұрын
Wow Same Man!
@78aspectt
@78aspectt 2 жыл бұрын
Yooo same
@Alwayscommentseveryday
@Alwayscommentseveryday Жыл бұрын
Add block and BEAN
@hayian2575
@hayian2575 5 жыл бұрын
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 5 жыл бұрын
There's something wrong with how you study computer science then
@donoffitness2892
@donoffitness2892 5 жыл бұрын
@@ethanma1722 fr lmaoo
@mertb.297
@mertb.297 5 жыл бұрын
U study in bangladesh or sth like that?
@koi596
@koi596 5 жыл бұрын
I studied in khan academy programing... Didn't learn much
@whytry4682
@whytry4682 4 жыл бұрын
Same
@vaggelisxenos1936
@vaggelisxenos1936 2 жыл бұрын
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 2 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Thanks for copying the code here, now I don't have to search outside to look for how to do it properly.
@blebdapleb8771
@blebdapleb8771 Жыл бұрын
@@Gabriel-zy6xv lol sorry for the late af reply, yeah ur right, I changed it
@anon7149
@anon7149 10 ай бұрын
THANK YOU SO MUCH
@emberise
@emberise 6 ай бұрын
Thank you so much
@bojken5384
@bojken5384 7 жыл бұрын
Thanks Brackeys for making videos for us
@Brackeys
@Brackeys 7 жыл бұрын
You are very welcome! :D
@armeenseyyedy9016
@armeenseyyedy9016 7 жыл бұрын
Great tutorial mate, keep it up, thank you so much!
@magikarp8084
@magikarp8084 7 жыл бұрын
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 7 жыл бұрын
I really like how you explain everything so that everyone understands
@RadioactiveYouTubeChannel
@RadioactiveYouTubeChannel 6 жыл бұрын
I love your pro pic its so funny
@mrebbesen
@mrebbesen 6 жыл бұрын
ha I still don't understand anything
@kintler11
@kintler11 5 жыл бұрын
Helped me learn programming very well.
@boiplaying2647
@boiplaying2647 5 жыл бұрын
@@mrebbesen You Should focus, its easy
@Jhonermite
@Jhonermite 3 жыл бұрын
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 2 жыл бұрын
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 7 жыл бұрын
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 7 жыл бұрын
if you need help with collision i can help
@xanny57
@xanny57 7 жыл бұрын
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 7 жыл бұрын
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 7 жыл бұрын
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 7 жыл бұрын
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 7 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Same thing is happening to me
@ALiteralCatfish
@ALiteralCatfish Жыл бұрын
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 7 жыл бұрын
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 5 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
I will always return to this as the videos that started my career.
@NoSp1ne
@NoSp1ne 2 жыл бұрын
And? Did it work out?
@_.emberrr
@_.emberrr 2 жыл бұрын
@@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 4 жыл бұрын
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 4 жыл бұрын
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
@mohammedaljassim5828
@mohammedaljassim5828 4 жыл бұрын
:O
@karlembeast
@karlembeast 4 жыл бұрын
Would be amazing if someone could type this up in LaTeX! 👌😂
@davidmalka1693
@davidmalka1693 4 жыл бұрын
what do you do in your free time lol
@asiletihw6993
@asiletihw6993 4 жыл бұрын
Thank u good sir for the notes! 😊👍
@arishakhan1137
@arishakhan1137 3 жыл бұрын
Thank you!
@Lexyvil
@Lexyvil 2 жыл бұрын
For my first 3D game engine, you are doing a phenomenal job explaining the basics! Thank you!
@dante_a_1103
@dante_a_1103 2 жыл бұрын
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 5 жыл бұрын
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
@aryavsaigal8898
@aryavsaigal8898 4 жыл бұрын
bill gates???
@hjc1710
@hjc1710 4 жыл бұрын
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 3 жыл бұрын
I love how he keeps everything free and accessible, thanks you are an angel
@h-0058
@h-0058 3 жыл бұрын
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 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 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 Жыл бұрын
this guy teaches so fast that every second is full of detail which i literally love it 😍😍
@samhain6024
@samhain6024 2 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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 10 ай бұрын
It takes a master to explain complex topics and make it easy to understand. Thanks for the vids
@sohrabroozbahani4700
@sohrabroozbahani4700 3 жыл бұрын
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 7 жыл бұрын
Wow! I don't think there is anyone better on KZbin that explains Unity like you! Great job!!!
@DTvoyager
@DTvoyager 4 жыл бұрын
"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 Жыл бұрын
I love when youtubers make a important aspect to coding something related to real life.
@cloudythb
@cloudythb 2 жыл бұрын
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 4 жыл бұрын
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 5 жыл бұрын
Man these tutorials are incredible I really feel like i'm learning something from them 10/10
@saketg5954
@saketg5954 3 жыл бұрын
This is fantastic man. Thank you for doing this. We really are living in the golden age of learning.
@astralknight7636
@astralknight7636 2 жыл бұрын
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 3 жыл бұрын
“You can pay whatever you like for this” That’s how you get subs without asking 😘
@charKT-7461
@charKT-7461 5 жыл бұрын
Online Courses on Udemy: ✋😤 Brackeys’ Tutorials: 😀👌
@Orincaby
@Orincaby 3 жыл бұрын
Thanks, Brackeys! These tutorials actually help a lot more than you probably think.
@strackieda
@strackieda 2 жыл бұрын
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 4 жыл бұрын
Unity- 1-Brackeys 2- Sykoo Blender- 1-Andrew(Blender guru) 2- CG Geek How many agree with me?
@SunilNmb
@SunilNmb 3 жыл бұрын
G develop-wishforge games
@neelamverma1032
@neelamverma1032 3 жыл бұрын
@@SunilNmb i never heard about this channel
@shreyanshsingh1814
@shreyanshsingh1814 3 жыл бұрын
but with funny game dev vdos dani is the #1
@gamertank9682
@gamertank9682 5 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
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 7 жыл бұрын
The best Unity tutor of all time
@kitthekat6844
@kitthekat6844 6 жыл бұрын
I'm loving these tutorials! Thanks alot!
@bilelbboy3303
@bilelbboy3303 3 жыл бұрын
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 2 жыл бұрын
Watched your first three videos. Had an absolute blast, thanks for all the help!
@michaelgonzalez8988
@michaelgonzalez8988 5 жыл бұрын
This man is a fucking legend, thank you for taking time to do this. You're too good for humanity!!!
@kyptix225
@kyptix225 4 жыл бұрын
Wow, a udemy ad on this free turtorial.
@shaderflip2641
@shaderflip2641 4 жыл бұрын
i saw that as well lol
@aaronfidelis3188
@aaronfidelis3188 4 жыл бұрын
Just despicable...
@joshawafrith4797
@joshawafrith4797 3 жыл бұрын
@@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 KZbin to fund his time and effort.
@chronofactor2037
@chronofactor2037 3 жыл бұрын
@@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 3 ай бұрын
This is so helpful. I have no prior experience with any of this and I'm learning easily
@danielf5651
@danielf5651 3 жыл бұрын
Watching your tutorials in 2020 and it's awesome.
@Michael-sc8if
@Michael-sc8if 3 жыл бұрын
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 KZbin to Visual Studio is time-consuming.
@chechnyanborz
@chechnyanborz 2 жыл бұрын
i feel you hahaha
@cmohityadav2007
@cmohityadav2007 2 жыл бұрын
I open KZbin in my tab
@luizcastro5246
@luizcastro5246 2 жыл бұрын
bruh your alt tab game is WEAK
@fafe1234
@fafe1234 7 жыл бұрын
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 3 жыл бұрын
I already knew js and the way you explained it made C# really really easy for me
@Napqn
@Napqn 2 жыл бұрын
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 7 жыл бұрын
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 4 жыл бұрын
"he starts rotating and jumping" Me using a sphere: I am four parrarel universes ahead of you!
@bbgamingplay1511
@bbgamingplay1511 4 жыл бұрын
Sorry but not very funny. Please don't call me a boomer
@destinysunny3675
@destinysunny3675 4 жыл бұрын
This is really funny... I did the same, and it was really fine without adding physic material
@BananaWasTaken
@BananaWasTaken 3 жыл бұрын
@@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 3 жыл бұрын
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 2 жыл бұрын
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 4 жыл бұрын
Holy cow! Tanks dude! This makes my life soo much easier, Even with Java experience this is understandable
@jdam9520
@jdam9520 7 жыл бұрын
The best tutorial ever, even my grandmom can understend it.
@christopherdoyle7683
@christopherdoyle7683 7 жыл бұрын
Zed main?
@Noah-py7ij
@Noah-py7ij 6 жыл бұрын
ikr
@zech6857
@zech6857 6 жыл бұрын
you underestimate grandmoms
@avimehta9778
@avimehta9778 5 жыл бұрын
Understending is different
@karmabound
@karmabound 5 жыл бұрын
no she can't
@Cookie-oh7hd
@Cookie-oh7hd Жыл бұрын
Big like. I did understand it. I even tried adding the "w" key to go forward, and it worked!
@samsepi0l143
@samsepi0l143 2 жыл бұрын
this is amazing, i can see that you really put time, effort and love into these tutorials, thanks for that!♥
@YodaForce157
@YodaForce157 3 жыл бұрын
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 3 жыл бұрын
Yea I had the same problem this fixed it though thx !
@suffer2903
@suffer2903 3 жыл бұрын
what do you mean
@hunniedew5037
@hunniedew5037 3 жыл бұрын
Hi I am still a little Can fuzed can you please explain a little more
@justadogwithagun6230
@justadogwithagun6230 3 жыл бұрын
@@hunniedew5037 add the component rigidbody to the script like he does
@user-kq3xn3jp7m
@user-kq3xn3jp7m 3 жыл бұрын
I dont get the mistake u made, can u clarify?? im getting the same error
@chupachups2030
@chupachups2030 5 жыл бұрын
i love you dude i am addicted to your videos and i love this more keep the good work
@abdullahalam2088
@abdullahalam2088 3 жыл бұрын
Best tutorials I've come across so far! Love them!
@gabeweston6660
@gabeweston6660 3 жыл бұрын
All the other tutorials I have watched are nothing compared to this, keep it up and thank you!
@yimwav
@yimwav 7 жыл бұрын
you make everything so clear and I understand all the code THX DUDE :)
@Brackeys
@Brackeys 7 жыл бұрын
Glad you think so :D
@xanny57
@xanny57 7 жыл бұрын
Third😅 Really good video! Waited so long for this!😁
@JulietInsight
@JulietInsight 9 ай бұрын
I loved that you added the extra challenge at the end! I managed it myself :)
@blizzyanimates2085
@blizzyanimates2085 2 жыл бұрын
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 2 жыл бұрын
This went perfectly well!
@jamesbrooks9321
@jamesbrooks9321 5 жыл бұрын
thank to the youtube gods that we can watch videos at x.75
@gottembra5742
@gottembra5742 5 жыл бұрын
Shreerang Vaidya I played this at 0x Thank the KZbin gods
@ItsMeAndru
@ItsMeAndru 5 жыл бұрын
Well, thank you as well for that info.
@davidchristian8473
@davidchristian8473 5 жыл бұрын
10nk u, I ddnt know, from now i'll watch tutorials on x1.25 or more.
@salvatorebutera7453
@salvatorebutera7453 4 жыл бұрын
Thank this god called Brackeys!
@gabrielvarca
@gabrielvarca 2 жыл бұрын
2 days into your KZbin course, God Thank you so so much
@bonfaceosuka
@bonfaceosuka 3 жыл бұрын
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.
How to make a Video Game in Unity - CAMERA FOLLOW (E04)
6:41
Brackeys
Рет қаралды 1,8 МЛН
Basic Principles of Game Design
9:06
Brackeys
Рет қаралды 1,5 МЛН
Did you find it?! 🤔✨✍️ #funnyart
00:11
Artistomg
Рет қаралды 124 МЛН
Тяжелые будни жены
00:46
К-Media
Рет қаралды 5 МЛН
How To Make A 3D Character For Your Game (Blender to Unity)
13:40
Jelle Vermandere
Рет қаралды 1,1 МЛН
How to MAKE YOUR GAME LOOK GOOD!
13:02
Brackeys
Рет қаралды 584 М.
How to make a Video Game - Godot Beginner Tutorial
1:17:12
Brackeys
Рет қаралды 976 М.
Coding Adventure: Clouds
12:50
Sebastian Lague
Рет қаралды 1,2 МЛН
synthwave radio 🌌 - beats to chill/game to
Lofi Girl
Рет қаралды 6 М.
HOW TO GAME JAM!
9:01
Brackeys
Рет қаралды 264 М.
LIGHTING in Unity
16:13
Brackeys
Рет қаралды 1,2 МЛН
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 1,9 МЛН
How to start Game Development in 2023 !
23:55
orangepixel
Рет қаралды 49 М.
How to make a Video Game in Unity - PROGRAMMING (E02)
10:11
Brackeys
Рет қаралды 3,9 МЛН
Did you find it?! 🤔✨✍️ #funnyart
00:11
Artistomg
Рет қаралды 124 МЛН