Тёмный

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

Brackeys
Подписаться 1,8 млн
Просмотров 4 млн
50% 1

Write your first script to move the player!
❤️ Donate: www.paypal.com...
····················································································
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...
········································­­·······································­·­····
♪ Baby Plays Electro Games
teknoaxe.com/cg...

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7 тыс.   
@rbayuardana
@rbayuardana 4 года назад
"Hello, World !" The beginning of a never ending nightmares
@thijslumeij
@thijslumeij 4 года назад
i can't add the rigidbody at 3:50 how did you did it?
@JuvenylAssassin
@JuvenylAssassin 4 года назад
@@thijslumeij i am having the same issue.
@noar5714
@noar5714 4 года назад
@@thijslumeij did you type it usung a big letter at the start or not? cuase if not , theres the problom
@thebass4511
@thebass4511 4 года назад
Since I am a man of class I put hello there.
@thebass4511
@thebass4511 4 года назад
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.
@jefflam4031
@jefflam4031 4 года назад
"The image refreshes multiple times per second!" My potato laptop: Haha no not doing that
@ifusubtomepewdiepiewillgiv1569
@ifusubtomepewdiepiewillgiv1569 4 года назад
69
@twooglz
@twooglz 4 года назад
@@ifusubtomepewdiepiewillgiv1569 haha funny number
@aestronom1920
@aestronom1920 4 года назад
So true
@pinkishpenguin6799
@pinkishpenguin6799 4 года назад
my gaming PC can do it ten times fast
@s0uls4nd
@s0uls4nd 4 года назад
@@pinkishpenguin6799 ok
@fret2fret221
@fret2fret221 4 года назад
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 года назад
SAME!!!
@pythonautomaton4695
@pythonautomaton4695 3 года назад
@@DoctorNoobGamingYT LOL
@spartanv0
@spartanv0 3 года назад
Well when you're just starting out you get happy about the smallest details which is good.
@brucelee7782
@brucelee7782 3 года назад
She was probably like mehh
@moonpotatoes7452
@moonpotatoes7452 3 года назад
This comment was 7 months ago how far have you gotten now? im curious.
@BOTTLEDSPRITE
@BOTTLEDSPRITE 3 года назад
Me: ok so this should work when I press play, right? Unity: The most i can do is 999+ errors
@meriseath3504
@meriseath3504 3 года назад
lol same with me
@drudru8811
@drudru8811 3 года назад
Same wtf
@raywu415
@raywu415 3 года назад
@ARYA RASOOLY Damn thanks, I was wondering what I did wrong.
@SLIME-gx6fo
@SLIME-gx6fo 3 года назад
@ARYA RASOOLY thanks dude
@themineballoner3652
@themineballoner3652 3 года назад
@ARYA RASOOLY OMG thanks dude you just made me realise how much of an idiot i was being
@gergoorosz6039
@gergoorosz6039 6 лет назад
These tutorials are better than paid ones on Udemy
@zobe3074
@zobe3074 6 лет назад
The irony is that in every video i get an add for paid tutorials on Udemy lol
@BlazertronGames
@BlazertronGames 6 лет назад
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 лет назад
Well to be fair, anyone can make tutorials on RU-vid.
@BlazertronGames
@BlazertronGames 6 лет назад
Nathan Cox Exactly, that's why you also find a lot of crap on youtube.
@greenballscience9514
@greenballscience9514 6 лет назад
I got an ad for udemy
@ImSublien
@ImSublien 4 года назад
*me having problems with the cube going backwards* *adds a negative sign and it works* me: i got big brain
@imquit1508
@imquit1508 4 года назад
hihi mine is not moving
@griffin7670
@griffin7670 4 года назад
what if.... *you were looking backwards*
@zarqa111
@zarqa111 4 года назад
Hey please help sir the hello world dosent appear on console
@zarqa111
@zarqa111 4 года назад
It says rigid body dosent contain a definition for user gravity
@kitsu8699
@kitsu8699 4 года назад
lets go theres a 2020 boy here
@mr.crazyface1684
@mr.crazyface1684 4 года назад
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 года назад
Thank you so much I was having so much trouble ur a life saver.
@Sriram-tp7vf
@Sriram-tp7vf 4 года назад
Really helpful comment, Thank you so much
@FeyNyXx_
@FeyNyXx_ 4 года назад
Thanks! That's exactly the comment I've been looking for! :D
@lonelystar25
@lonelystar25 4 года назад
You're the hero no one asked for but everyone needs
@aayushsharma2171
@aayushsharma2171 4 года назад
thanks man it works !
@biologicalseed777
@biologicalseed777 3 года назад
can't wait to get to the best part, *UNITY'S PARTICLE SYSTEM*
@xmgamer5672
@xmgamer5672 3 года назад
Oh your wondering what Karlson is?
@digvijaysingh5290
@digvijaysingh5290 3 года назад
@@xmgamer5672 Its just a game Dani is working on.
@crustboy1056
@crustboy1056 3 года назад
@@digvijaysingh5290 its like the 15th most wishlisted game on steam, lets get to #1 GAMERS SIPS MILK: REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
@rethishrams6168
@rethishrams6168 3 года назад
So slap wishlist now GAMERS
@GenericSoutheastAsian
@GenericSoutheastAsian 3 года назад
Buy milk
@amaproduction2314
@amaproduction2314 4 года назад
("Hello, World!") E R R O R
@amaproduction2314
@amaproduction2314 3 года назад
@Holden Jordan sure I'll tell you if it worked.
@PointlessGamer_xD
@PointlessGamer_xD 3 года назад
@The Void thanks I was so confused
@radkocodex1033
@radkocodex1033 3 года назад
@The Void Lol so it's Debug.Log("Hello, World"); with the; thx
@buzzy2
@buzzy2 3 года назад
@@radkocodex1033 you just ruined like that snit
@georgelopez4930
@georgelopez4930 3 года назад
R.I.P game
@ryan-levy
@ryan-levy 4 года назад
"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 4 года назад
So true xD
@shreydaga7918
@shreydaga7918 3 года назад
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 Год назад
Using the while loop...oh my god
@prabhie9747
@prabhie9747 6 лет назад
void start() { Debug.Log("Awesome Video Really Helped Me Alot. Thanks"); }
@olivenest
@olivenest 4 года назад
By the way, it needs a capital S for start
@loptheflop9615
@loptheflop9615 4 года назад
@@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
@zamcar4452
@zamcar4452 3 года назад
Me wanting to create a normal game: RU-vid come here I need help. Me after figuring out I can send cubes to kick the fcking sun in unity:this is fine.
@Traventine
@Traventine 3 года назад
"Physics determined by frame rate? That's not a bug, it's a feature." -Todd Howard
@kirayoshikage647
@kirayoshikage647 3 года назад
so true
@jinnans_gd
@jinnans_gd 3 года назад
-Robtop games
@beef1043
@beef1043 3 года назад
-tf2 devs making demoknight
@mysticmemer4887
@mysticmemer4887 3 года назад
It just works
@suraj98222
@suraj98222 3 года назад
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
@goose4262
@goose4262 4 года назад
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!?*
@Shaadwz
@Shaadwz 4 года назад
Yeah, big brain ( ͡o ͜ʖ ͡o)
@goose4262
@goose4262 4 года назад
@@Shaadwz when i learned fallout 76 was made by a rookie team at Bethesda, I didn't realise they were talking about REALLY rookie
@Shaadwz
@Shaadwz 4 года назад
@@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 года назад
The game wasn't made in unity so... no
@gaelsdaddy2341
@gaelsdaddy2341 4 года назад
@@larsderoover Yeah but I'm sure their engine has an equivalent to that. It's most likely just not called Time.deltaTime
@kilby-cj4ri
@kilby-cj4ri 3 года назад
"Hello, World!" the first thing you will code in every language.
@arceususedsplash300
@arceususedsplash300 3 года назад
doesnt even work Assets\Move.cs(10,15): error CS0117: 'Debug' does not contain a definition for 'log'
@bensmart2829
@bensmart2829 3 года назад
@@arceususedsplash300 Log with a capital L
@me-specifically
@me-specifically 3 года назад
well, except probably scratch
@notanenglishperson9865
@notanenglishperson9865 3 года назад
Thanks, Cap
@Red_Eagle
@Red_Eagle 3 года назад
@@me-specifically say ("hello world") is the first thing i coded in scratch, so no!
@stellarsymphony7214
@stellarsymphony7214 4 года назад
Episode 1: Wow I'm so good! Game design is so simple! Episode 2: Hello darkness my old friend....
@prathampawan8199
@prathampawan8199 4 года назад
it is pretty easy you'r brain is shit
@pointed2438
@pointed2438 4 года назад
@@prathampawan8199 Chill out
@chrisgonzales5597
@chrisgonzales5597 4 года назад
hehe yeah
@bennettoneill203
@bennettoneill203 4 года назад
@@prathampawan8199 I find it quite difficult :/
@bloodbath4087
@bloodbath4087 4 года назад
@@prathampawan8199 Wow you're a dick aren't you?
@urubonzyt3773
@urubonzyt3773 4 года назад
Him: You will use visual studio Me: Using Notepad
@justiswadino333
@justiswadino333 4 года назад
Same lol
@jaxonplayz6256
@jaxonplayz6256 4 года назад
me to but it says error in the concel
@ale-pg3xb
@ale-pg3xb 4 года назад
when i still i used a mac i used textedit lol it is like notepad but with dark theme lul
@kenlinasobirionwu5776
@kenlinasobirionwu5776 4 года назад
Download Visual Studio it's free and the best thing u will ever do
@kachamchakradhar9586
@kachamchakradhar9586 4 года назад
@@jaxonplayz6256 same to me if u find help me
@ritankarsaha1982
@ritankarsaha1982 5 лет назад
I like how u don't give a dope dubstep remix track after u say lets jump right into it
@Levi-ll2tx
@Levi-ll2tx 5 лет назад
OH MY GOD GUYS WILL IT WORK?!??!?!?!??!??
@Ikebot
@Ikebot 4 года назад
I very much agree with this sentiment
@HiddeWinter
@HiddeWinter 3 года назад
a journey, if you will - download visual studio - it didnt connect -''why didnt it work'' - spend an hour fixing unity to visual studio - it works :) - start coding - code doesnt work -
@Zeriel00
@Zeriel00 6 лет назад
You know a programming tutorial is going to be good when it starts with Hello World! xD
@NoOffenseAnimation
@NoOffenseAnimation 5 лет назад
but what if it starts with Yoylecake
@nebyudaniel2018
@nebyudaniel2018 5 лет назад
alie
@DrBotnus
@DrBotnus 5 лет назад
Yea,
@GaryParkin
@GaryParkin 5 лет назад
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 лет назад
@@GaryParkin Brian Kernighan and Dennis Ritchie: in 1978 en.wikipedia.org/wiki/The_C_Programming_Language
@rogertsang4865
@rogertsang4865 4 года назад
I recommend Fallout 76 developers to go through this video and learn about Time.deltaTime.
@eeeee5443
@eeeee5443 4 года назад
Bethesda
@coquetteshadow
@coquetteshadow 4 года назад
haha
@poplel
@poplel 4 года назад
No kidding.
@zxmusefabrication6134
@zxmusefabrication6134 4 года назад
Remember though at the time this tutorial was posted Time.deltaTime was relatively new...
@annmarieaguirre8482
@annmarieaguirre8482 4 года назад
fax
@SvensMediaa
@SvensMediaa 3 года назад
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 года назад
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 года назад
@@visaganixa8986 thanks
@killaon_ttv8942
@killaon_ttv8942 3 года назад
@@visaganixa8986 you are a life savior!!
@supernova195
@supernova195 3 года назад
@@killaon_ttv8942 i hit the wrong one
@SilentMonster165
@SilentMonster165 Год назад
I know this may be a stupid question, but how the hell did you turn the word rigidbody orange?
@AnkitSharma-oe7fg
@AnkitSharma-oe7fg Год назад
Bro same problem here
@rishiz7384
@rishiz7384 4 года назад
it still works the code but it gave me this error code UnassignedReferenceException: The variable rb of playermovement has not been assigned. You probably need to assign the rb variable of the playermovement script in the inspector. playermovement.Start () (at Assets/playermovement.cs:12) please help
@greentruthful1968
@greentruthful1968 4 года назад
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 года назад
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!
@jaxonharrisoldchannel4953
@jaxonharrisoldchannel4953 4 года назад
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 года назад
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.
@skyrym
@skyrym 4 года назад
For 2019.3+ versions of Unity the Debug.Log("Hello, World!"); is replaced by UnityEngine.Debug.Log("Hello World!");
@breeze2440
@breeze2440 4 года назад
It's still working for me 🙄
@skyrym
@skyrym 4 года назад
@@breeze2440 nice
@Galdethriel
@Galdethriel 4 года назад
Debug.Log seems fine on mine too.
@skyrym
@skyrym 4 года назад
@@Galdethriel hm, im using 2019.3.12f1
@breeze2440
@breeze2440 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
@opalthediloalt9595
@opalthediloalt9595 6 лет назад
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 6 лет назад
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 6 лет назад
I literally did everything right and it won't wooorkkkkkk 😂
@dankanfoush
@dankanfoush 6 лет назад
Same here,cube falls but no Hello World. checked and rechecked, everything appears correct. ????????
@RoniKanto
@RoniKanto 6 лет назад
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 6 лет назад
Lol it's just a debug log
@ethanlopez3031
@ethanlopez3031 5 лет назад
Brackey:”Let’s enjoy our results” Becomes quiet and watches the cube slowly roll away lol.
@gingercap4803
@gingercap4803 3 года назад
You had me in the first episode, not gonna lie
@WxckyPenguin
@WxckyPenguin 3 года назад
Same bruh I hate programing
@karolingston
@karolingston 3 года назад
@@WxckyPenguin programming is fun lol
@damnatioodiosis5537
@damnatioodiosis5537 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
@jonathanfowler2932
@jonathanfowler2932 7 лет назад
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 лет назад
This tutorial is also great for brushing up on old skills without too much fluff.
@humidharolddeadgamingchann1791
@humidharolddeadgamingchann1791 4 года назад
“public” turned blue but “Rigidbody” didn’t turn yellow.
@WinBlah
@WinBlah 4 года назад
in unity you should go to: > Edit > Preferences (click) > External tools(click) > external script editor > choose visual studio
@tudorradu5848
@tudorradu5848 4 года назад
it happens to me too. Did you solve the problem? Let me know plz how can I fix that
@humidharolddeadgamingchann1791
@humidharolddeadgamingchann1791 4 года назад
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 4 года назад
@@WinBlah Thank you good man
@nikhiljagtap1669
@nikhiljagtap1669 4 года назад
@@WinBlah use monokai colour theme, for vscode
@notquitesoot
@notquitesoot 3 года назад
First part: EZ Second part: I'll never make a faqing game.
@mytho2630
@mytho2630 3 года назад
Its always confusing at first, eventually you will get it. You may want to view a more recent tutorial if the code isn't working for you.
@tombrady1398
@tombrady1398 3 года назад
@@mytho2630 does it still work? Or did updates break the code
@shxiro.
@shxiro. 3 года назад
yeah wtf so hard
@GooseGaming457
@GooseGaming457 3 года назад
Just did and it worked after redoing exactly what he did 20 times
@Nathanos-gogurt
@Nathanos-gogurt 3 года назад
It took me longer than is like to admit to figure out i typed "rd" instead of "rb"
@tamim999ksa
@tamim999ksa 3 года назад
ik this is 2 months old lol but rb is supposed to be the name of the variable so it wont matter if you named it anything
@damnatioodiosis5537
@damnatioodiosis5537 3 года назад
@CubingAndCoding12 um that tutorial is 4 years old, and though Brackey is the second-best game dev out there, I think you should watch something more recent because unity has changed a lot since then... Like this one: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pwZpJzpE2lQ.html
@willpetillo1189
@willpetillo1189 4 года назад
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
@phant0m763
@phant0m763 3 года назад
You are a good man. Thank you.
@fredward2428
@fredward2428 3 года назад
Man of honor
@afaz4070
@afaz4070 3 года назад
10:11 realizing the video has ended
@faisalalodat9037
@faisalalodat9037 3 года назад
Thank u
@rodolfosuarez2706
@rodolfosuarez2706 3 года назад
My Brother Will
@alexanderkonig577
@alexanderkonig577 4 года назад
The text in my script doesn’t have different coleurs. Does anyone no why or how to change it?
@DoktorekBruh
@DoktorekBruh 4 года назад
i too have this problem
@arynickson
@arynickson 4 года назад
me too
@weil2496
@weil2496 4 года назад
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 года назад
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 года назад
colors*
@youssefazaaz
@youssefazaaz 7 лет назад
I am an intermediate unity user, but I watch these videos. I ADMIRE BRACKEYS
@JadenAccord
@JadenAccord 7 лет назад
Me2
@Zxios
@Zxios 7 лет назад
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 7 лет назад
Zxios I can't get the rigid body rb; part to work can you help me
@LivelyR
@LivelyR 7 лет назад
@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?
@hakimazib5729
@hakimazib5729 2 года назад
console error. Why?
@EvolutionsNotATheory
@EvolutionsNotATheory 2 месяца назад
I know it's late... But I feel like this needs to be said anyways: "What's the error?" 😂
@supremegaming368
@supremegaming368 2 месяца назад
​@@EvolutionsNotATheory 😂 not late..,it's very late 😂
@superfastjude5511
@superfastjude5511 Месяц назад
Error cs0236
@mingangxu2125
@mingangxu2125 4 года назад
Brackeys: shows me how to do anything Me after watching 1000 RU-vid unclear tutorials: years of academy training wasted!
@watesub4517
@watesub4517 4 года назад
Fully agree, this guy is truly amazing!
@stine3239
@stine3239 6 лет назад
for anyone having trouble with anything with the Rigidbody use rb = GetComponent(); at the beginning of the void start()
@benlloyd6338
@benlloyd6338 6 лет назад
thanks
@buyardent4me
@buyardent4me 6 лет назад
this shit helped alot. But can't understand why this only public Rigidbody rb; doesn't work for me
@VYKco
@VYKco 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 6 лет назад
Thank you so much
@atomixz8064
@atomixz8064 6 лет назад
Thanks
@telemonofficial6924
@telemonofficial6924 6 лет назад
Cool tutorial, but the Udemy commercial is seriously start to annoy me >:( Edit: And now the Code Monkey! D:
@deviousdevin2112
@deviousdevin2112 5 лет назад
ublock origin works great lol most ads dont come through
@xstrawberryicex6852
@xstrawberryicex6852 5 лет назад
Devious Devin right and he makes no money, use your morals brother
@nebyudaniel2018
@nebyudaniel2018 5 лет назад
improbable.io
@xstrawberryicex6852
@xstrawberryicex6852 5 лет назад
Chris Kavanagh thats not a liveable wage boi
@andrewandrei3062
@andrewandrei3062 5 лет назад
just report the commercial as irrelevant lol
@klausb5865
@klausb5865 Год назад
after i add the script it just says "all compiler errors must be fixed before entering game mode"
@steez_sends
@steez_sends Год назад
it means there is an error in your code
@arthurmesserschmidt
@arthurmesserschmidt 4 года назад
Creating a game in Unity with Java-script: Wait, that illegal!
@joechristo2
@joechristo2 4 года назад
Arthur Messerschmidt in unity 2020 that is
@nextal_
@nextal_ 4 года назад
I Need To Share This! 📱📲
@IbraHere
@IbraHere 3 года назад
tbh java is kinda easier for me
@IbraHere
@IbraHere 3 года назад
because they put their commands in to ''readable sentences''
@junlge1513
@junlge1513 6 лет назад
Tutorial: "Im just gonna add another zero" Me: *Adds two zeros*
@LordPenisTheThird
@LordPenisTheThird 3 года назад
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 года назад
Thank you mate! for a moment I thought all hope was lost.
@dd-fz3ku
@dd-fz3ku 3 года назад
Thank you soo much!
@soup8195
@soup8195 3 года назад
Thanks that saved five hours of searching for help
@gavinatrix
@gavinatrix 3 года назад
im confused it helped it but it keeps dissapearing
@thulasidharand8806
@thulasidharand8806 3 года назад
U R THE BEST!! for a moment I thought all hope was lost... XD
@vulduv
@vulduv 4 года назад
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.
@StevenLoprese
@StevenLoprese 2 года назад
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.
@julisaorozco4569
@julisaorozco4569 2 года назад
lmao
@shaqb4454
@shaqb4454 4 года назад
Hey all, it’s “Rigidbody” not RigidBody. Don’t capitalize the “b” in body. As a JS web developer, that tripped me up.
@arir43
@arir43 4 года назад
This is C#
@anas100x
@anas100x 4 года назад
Ari R smh he’s saying since he’s always used JS where you capitalize like that, that he got confused in C#
@jackson_huff27
@jackson_huff27 4 года назад
thanks shaq i couldnt get it!
@arir43
@arir43 4 года назад
CyberWolf, I’m not criticizing, I’m just providing feedback.
@sherryhageman2310
@sherryhageman2310 4 года назад
I'm still having problems getting it to work even by copying his code exactly it's still not working! rb will not appear as one of the components
@dzymangaming45
@dzymangaming45 4 года назад
Who's watching this in 2020, during covid 19 lol
@swaunty7691
@swaunty7691 4 года назад
Me lol
@r31gn88
@r31gn88 4 года назад
me too haha
@shoemannclara
@shoemannclara 4 года назад
me
@stefanbunoiu5310
@stefanbunoiu5310 4 года назад
me 2 lol
@yashasvik2958
@yashasvik2958 4 года назад
no. just, no.
@meryyy0388
@meryyy0388 4 года назад
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 года назад
thank you.
@qetitchitchinadze5322
@qetitchitchinadze5322 4 года назад
I love you
@forward8204
@forward8204 4 года назад
and if thats doesnt work??
@meryyy0388
@meryyy0388 4 года назад
@@forward8204 i suggest to copy the problem exactly and directly to the google bar, thats what i did
@-TBH-
@-TBH- 4 года назад
@@forward8204 ​You need to attach the script to a game object or else the script will not activate.
@namikazeminato68
@namikazeminato68 2 года назад
7:46 Him: Your cube should not move at all because the computer is drawing a lot of frames per second Me who just saw my cube launch off into the horizon: ._.
@prod.5starr
@prod.5starr 6 лет назад
When I typed public rigidbody rb;, it said the variable rb wasn’t assigned
@definitelynotjames1970
@definitelynotjames1970 4 года назад
drag the rigbody component to rb
@definitelynotjames1970
@definitelynotjames1970 4 года назад
@Kryptex. send me the code dude
@shiffty8732
@shiffty8732 4 года назад
@@definitelynotjames1970 not working for me either :,(
@definitelynotjames1970
@definitelynotjames1970 4 года назад
@@shiffty8732 send me the code
@Vox777
@Vox777 4 года назад
It's cuz of the different versions... Brakeys please send help XD
@griffieboiii3056
@griffieboiii3056 4 года назад
"Theres alot of scary stuff going on here" Me looks back in my closet and sees a monster. The script is still scarier
@StylizedSchools
@StylizedSchools 5 лет назад
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!
@atlasproductions2888
@atlasproductions2888 4 года назад
same here. Which course did you try on Unity?
@whiteaceofspades4873
@whiteaceofspades4873 3 года назад
Hey, I need some help, I did the rb thing in the video, but whenever I adressed it, unity said it didnt exist, my code is identical to his but it just wont work! Can someone please help.
@leonpresby1958
@leonpresby1958 3 года назад
If you are getting the Error: The variable rb of PlayerMovement has not been assigned. Then it's not an issue because the script would still run when adding Rigidbody component to rb variable (Clicking and dragging Rigidbody onto rb of Player Movement (Script). I hope this helps. If the Error message is different let me know, maybe I can help.
@thewordleguy5804
@thewordleguy5804 Год назад
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); } } I used this exact code but i get this error: error CS1519: Invalid token: ';' in class, record, struct, or interface member declaration. Someone please help me
@feyhem01_
@feyhem01_ Год назад
u wrote public RigidBody = rb; it should be public RigidBody rb;
@JoshuaZangari
@JoshuaZangari 4 года назад
"Let's put this on a new line to make it easier to see" - Turning whole generations into dirty newline bracket users. Madness.
@SpltPersonaltyOF
@SpltPersonaltyOF 4 года назад
Yeah, why would one want to waste vertical space like that!
@joechristo2
@joechristo2 4 года назад
SpltPersonaltyOF guess what i am a new line bracket user and probably i am not now
@quinnk8572
@quinnk8572 4 года назад
My code looks exactly the same as his (caps and everything) but the words aren't changing color and a screwdriver keeps coming up and no matter how many times i do what the screw driver says it never works. Im so close to giving up please help.
@terminator6646
@terminator6646 4 года назад
did you find it now ?
@quinnk8572
@quinnk8572 4 года назад
@@terminator6646 unfortunately not. but im still searching.
@mrpink-1
@mrpink-1 3 года назад
damn i hope you haven't given up yet. The issue is you need to link unity to visual studio/visual studio code. Go to edit -> preferences -> external tools then change the external script editor whatever editor your using. That should fix it.
@quinnk8572
@quinnk8572 3 года назад
@@mrpink-1 haven't given up completely but definitely put it on the back burner for the last 5 months because wherever I looked I couldn't find the solution. But with your comment I look forward to diving back into it. thank you so much, you're amazing
@nimbarius1800
@nimbarius1800 3 года назад
@@quinnk8572 Me too, nothing is working.
@SuperT2004
@SuperT2004 6 лет назад
I think you are doing a greate job explaining things, but it's almost like you are in a hurry. im having a hard time following ur steps and often have to jump back 5-10 seconds!
@coat68
@coat68 6 лет назад
opp33 *.
@incrediblemaxishere1780
@incrediblemaxishere1780 5 лет назад
Same here, I had to go back many times. But I ended up figuring it out. XD
@wizzedsoup4277
@wizzedsoup4277 5 лет назад
He has 30 minutes of content smashed into 10. I prefer that over 3 minutes content dragged over in 10 minutes.
@ajconiglio8995
@ajconiglio8995 5 лет назад
It messes with the audio a bit, but I set the playback speed to 0.75 for this exact same reason, and it’s easier to follow. Anything lower and we get BrackeysMolasses.exe xD
@coltenwills1926
@coltenwills1926 5 лет назад
I do the same as AJ, just lower playback speed, way easier to follow and makes him sound like a stoner. Good and good for you.
@ayanxd05
@ayanxd05 3 года назад
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 Год назад
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
@mayoldd
@mayoldd Год назад
I'm having trouble even getting rb to appear. Got any idea why?
@Kaiju_222
@Kaiju_222 Год назад
Thank you so much!
@CookingWithCows
@CookingWithCows 7 лет назад
It's misleading, or let's say oversimplified to say Start() runs when you start the game :P It runs when the Gameobject that the script is attached to comes into existance, for example the game is already running and you instantiate an object with that script on, the Start() function is executed once.
@tronlinestudios3969
@tronlinestudios3969 7 лет назад
Well, since the cube was meant to 'fly away' at the moment you start the game, Start() does technically run when he started the game. :)
@panlis6243
@panlis6243 7 лет назад
yeah, but since a lot of newbies might watch this video to get started with game dev it might be a little missleading
@VYKco
@VYKco 6 лет назад
for someone who hasn't coded in java, C#, or another OO langauge, it would probably be confusing for them. I know java though, so i learned this pretty easy.
@rmcooktails
@rmcooktails 4 года назад
I have the 2019 versoin of Unity and visual studio i did everything you said up to the part where drag the Rigidbody component into the script and i noticed it went None (Rigidbody) to Player (Rigidbody) mines deosnt do that though. I even tried using the editor to select player i dont know if this method is absolete or not now if so plz let me know.
@kirov_airship
@kirov_airship 4 года назад
Try: rb = GetComponent(); Put it in void Start().
@saucedbox5138
@saucedbox5138 4 года назад
When you play your game and the cube doesn’t move, go to Visual Studio, and look at where it says: public class playermovement : MonoBehaviour. Below that or beside it there should be a {. When you type in public Rigidbody rb; make sure it is in that that {.
@strappedwithkrylon
@strappedwithkrylon 4 года назад
In the component "PlayerMovement (Script)" and the part that says "Rb Player (Rigidbody)" or in your case "Rb none" press the small circle to the right of that and choose Player. Then it should work (if we had the same problems - but I think we did).
@buzzsawnk7198
@buzzsawnk7198 4 года назад
yeah me too and the trick that lewis lo put doesnt work for me
@saucedbox5138
@saucedbox5138 4 года назад
Help Me When downloading Unity, there are two options. If you are a student in education, then download the one that says student. If you are doing this for fun like me, download the one that says personal. I will leave links at the end of this reply. For what language to select, select your native language. For me, English or Danish is the best pick. For Visual Studio (VS) it automatically installs when downloading Unity. Please keep in mind that when you download Unity from the website you are downloading Unity Hub. This is where all your projects are stored and information about your account. You might have to make a Unity account when you first use Unity Hub. When you are in Unity Hub, find something that says download Unity. I don’t remember this very well as it was a long time ago. When you click that button it should say what version of Unity Engine you want to download. Select the newest version. Once it is finished downloading, make a new project. If you have problems just tag me in these reply’s and I will answer happily. Unity Hub: store.unity.com/?_ga=2.194103278.2105603561.1585408113-1100472875.1560566270#plans-individual
@SheikhAmeen
@SheikhAmeen 4 года назад
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! 😊
@Joey_Hughes
@Joey_Hughes 4 года назад
oh my god, you're a saint tysm
@mateoandre8112
@mateoandre8112 4 года назад
thank you
@JosaxJaz
@JosaxJaz Год назад
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!
@plasamm2
@plasamm2 Год назад
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 } }
@siriluar6574
@siriluar6574 Месяц назад
Thank you so much! I spent hours trying to figure this out!
@satchharetuku174
@satchharetuku174 13 дней назад
i love you
@christianfernandez7732
@christianfernandez7732 Год назад
Some updates that works for me [1] Creating Script Right click on your `Project Window> Asset Folder` and select `Create> C# Script` Once created, you can now drag it to your player object. [2] Intellisense/Autocomplete Not Working on my Visual Studio Go to File > Preference > External Tools > External Script Editor>Microsoft Visual Studio *by default you may see that open by file extension is selected thats why autocomplete/intellisense is not working.
@RaiderNightt
@RaiderNightt Год назад
You just saved me from a headache. Thank you.
@SpectreKritical
@SpectreKritical Год назад
YOU'RE A LIFESAVER
@Ze_Techno
@Ze_Techno Год назад
I can confirm the second one it wasn't working for me neither so I asked my Unity pro friend and he told me to do that. Totally works 👍
@Ze_Techno
@Ze_Techno Год назад
crazy to see how many people are still around here tho
@Supanoobman
@Supanoobman Год назад
Its under edit, not file btw
@tylermclaughlin5742
@tylermclaughlin5742 Год назад
3:53 Cant get this working on visual studio?
@Sketch-yWriting
@Sketch-yWriting Год назад
having the same problem here. did you figure it out?
@KenN0tGood
@KenN0tGood 10 месяцев назад
Hey I think I can help, what exactly is the problem?
@KenN0tGood
@KenN0tGood 7 месяцев назад
@@sta_rld bro too late I forgot what i did
@SodioC
@SodioC 4 года назад
The AddForce script didn’t do anything, is something wrong? Edit: Nvm, I fixed it. I saw another comment that helped me out
@artnevka779
@artnevka779 4 года назад
yes something wrong
@hitesh2503
@hitesh2503 4 года назад
@@artnevka779 your coding must be wrong
@RandomInternetIdot
@RandomInternetIdot 4 года назад
Maybe you messed up the reference Or maybe you forgot the semi colon? Or you didnt do the right capitals? Idk there are a lot of possibilities
@SodioC
@SodioC 4 года назад
@Johnny Shin I fixed it in around 10 mins after i wrote this so everything’s fine now
@Koddra
@Koddra 4 года назад
@@SodioC and how you fixed it? i have same problem and i dont know how to fix it
@sickboydroid
@sickboydroid Год назад
Did you see? 50% of the viewers have already left!!!. Me and you are gonna stick to end. Meet you at the last video. BYEEEEEEEE
@michaelmurray8610
@michaelmurray8610 Год назад
this this comment is actually pushing me to go forward, It’s hard tho, How are you doing with this?
@sickboydroid
@sickboydroid Год назад
@@michaelmurray8610 I actually made a couple of games after completing these ~10 videos. It was really fun. Now i am learning about data structures and algorithms.
@michaelmurray8610
@michaelmurray8610 Год назад
@@sickboydroid that’s awesome, It’s pretty confusing, But I’ll get through it. Congratulations Though.
@neverpure20
@neverpure20 4 года назад
03:50 I don't see Rigidbody there when I type it
@omersenol5901
@omersenol5901 4 года назад
same
@davidreyes9574
@davidreyes9574 4 года назад
@Halil Karabacak it worked man, Thanks
@enderwidder2500
@enderwidder2500 4 года назад
@Halil Karabacak it didnt work for me
@boastfulltroll9632
@boastfulltroll9632 4 года назад
@Halil Karabacak Thanks mate
@timmylol6
@timmylol6 4 года назад
I am currently working with VSCode and face the same problem. Anyone know how to solve this issue on VSC?
@ottercarbonara3446
@ottercarbonara3446 4 года назад
Right, so when I go to type something like public RigidBody rb; it doesn't let me pick rigid body and says it's not an asset. The script is c# in the player which has rigid body. I can't even use Eebug.log as it says log isn't an asset. Please help
@pepejah226
@pepejah226 4 года назад
SAME i have spent hours on this one part
@ottercarbonara3446
@ottercarbonara3446 4 года назад
@@pepejah226 yeah I fixed it now
@pepejah226
@pepejah226 4 года назад
@@ottercarbonara3446 same here just figured it out
@muhammadkhairul9725
@muhammadkhairul9725 4 года назад
@@pepejah226 and otter, how ?
@warp_machine
@warp_machine 4 года назад
@@muhammadkhairul9725 Select the object instead of "none" in Rb (this is in inspector)
@ptsg
@ptsg 7 лет назад
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 лет назад
I would be honored! Glad you like them :D
@nguyenminhle6959
@nguyenminhle6959 7 лет назад
Sander Koldenhof q
@jaydenrachal1655
@jaydenrachal1655 7 лет назад
when you did the rigidbody after public it did not work can u help me
@simplyangeleyes
@simplyangeleyes 2 года назад
@@jaydenrachal1655 fr it didnt work for me either
@a.cap.e
@a.cap.e 5 месяцев назад
people watching in 2024: 👇
@thymen3431
@thymen3431 3 года назад
I had a problem with the 'public' an Rigidbody stuff, after restarting Unity and Visual Studio it worked, hoping someone with this problem reads this
@monsterrally1256
@monsterrally1256 3 года назад
I was stuck trying to fix it for like half an hour I restart it and it worked, thank you so much!
@thymen3431
@thymen3431 3 года назад
Np
@Robinkami1111
@Robinkami1111 3 года назад
Thx a bunch
@thymen3431
@thymen3431 3 года назад
@@Robinkami1111 ur welcome
@Robinkami1111
@Robinkami1111 3 года назад
@@thymen3431 Woah fast reply
@benlloyd6338
@benlloyd6338 6 лет назад
i cant get rb to show up.
@zwagzwijn1703
@zwagzwijn1703 5 лет назад
same
@neerarai377
@neerarai377 5 лет назад
Yes same
@akanas6628
@akanas6628 5 лет назад
STILL NOT WORKING !!! @Mohid
@therustygamer2703
@therustygamer2703 5 лет назад
Holy shit took me abou an hour to figure out what was wrong but the coding should be written like this void Start() { Rigidbody rb = GetComponent(); rb.AddForce(0, 200, 500); } t@@akanas6628
@LeoBurca
@LeoBurca 5 лет назад
@@therustygamer2703 Thank you SO fucking MUCH! I was using a lot of time on it as well and got so frustrated
@ppunz
@ppunz 4 года назад
Omg this dude is goat (greatest of all time). he made my family and software engineer dad proud! thanks tons :)
@takagawanaufal815
@takagawanaufal815 Год назад
public Rigidbody rb; It's not working on Me, what should I do to fix it?
@kaidengamercool12
@kaidengamercool12 Год назад
maybe u typed it wrong c# is case sensitive it should be (public Rigidbody rb;)
@no8053
@no8053 4 года назад
Me writing code peacefully and trying to go along with the video Brackeys: *I AM SPEED*
@jajuan_brown
@jajuan_brown 4 года назад
Hey, whenever I put on rigidbody in my code it is not registering as pure C#. What should I do? Btw where are you from?
@hamzs_hm
@hamzs_hm 4 года назад
i think hes from sweden
@jajuan_brown
@jajuan_brown 3 года назад
@blue banana tech wdym
@zappyapp
@zappyapp 3 года назад
@blue banana tech test
@koaboa
@koaboa 4 года назад
This was more informative than a whole year of programming in school
@funkybagels
@funkybagels 3 года назад
keeps on saying comilier error
@MrWolf2595
@MrWolf2595 5 лет назад
Someone in the comments here said how to link Unity to Visual Studio, which is a fundamental step to make the editor work. The procedure on Mac is slightly different. If you guys are programming on a Mac, you might run into a few more issues! If Visual Studio isn't working like in the video, here's what you can do: 1. Do everything Benjamin Kvist said below and set Visual Studio as an External Script Editor in Unity. You can do this in Unity -> Edit -> Preferences. 2. You might still run into some errors, such as "Some projects have trouble loading. Please see output for more details." You most likely need to install .NET on your Mac. You can do that from here: dotnet.microsoft.com/download 3. But, because the .NET Framework isn't available outside of Windows, you'll need to install Mono as well. Go to www.mono-project.com/download/stable/ and grab the latest release of Mono. 4. Restart Unity AND Visual Studio, then open your C# script straight from Unity. The editor should now show Intellisense, syntax suggestions and more, including red highlights when there's an issue in your code. Have fun!
@europastubbiologyandaquati4698
AnthonyWolf it’s saying it will take 999.9!space is this correct
@mattjackson7610
@mattjackson7610 Год назад
d
@DuDaJ_JacobDowns
@DuDaJ_JacobDowns 4 года назад
I need help... The console says: UnasssignedException: The variable rb of PlayerMovement has not been assigned. You probably need to assign the rb variable of the PlayerMovement script in the inspector. I don't know what to do to fix it because I copied his exact code...
@jardariversen4787
@jardariversen4787 4 года назад
Think i got something similar, quite frustrating
@bojanvelkoski3275
@bojanvelkoski3275 4 года назад
did anyone fix it? EDIT: it took me an hour to figure it out.... Click on Cube in the sample scene tab and then at the bottom right corner there's PlayerMovement (Script), left to it there's a tiny box that's ticked.. just untick it and it'll work.
@hubn2000
@hubn2000 4 года назад
@@bojanvelkoski3275 Dude thank you so much
@thestickman1303
@thestickman1303 4 года назад
I found a 2nd solution,because i saw someone else posted a solution,but for me it did not work.Here is it:On the bottom right corner is a Player Movement (script),all you need to do is to go a bit down where it says "None(RigidBody)". You just need to click on the little circle on the right of the "None(RigidBody)", and select "Player".You're welcome :)
@creapermann6356
@creapermann6356 4 года назад
could anyone help me out? ( min 4: 50 ) my Use Gravity doesnt turn of, everything is written correct but it still doesnt work. EDIT: Add: rb = GetComponent(); into the Start Funktion.
@Vitor77R
@Vitor77R 4 года назад
Me too man, came here searching for help also. The gravity check doesn't disapear when i input false.
@creapermann6356
@creapermann6356 4 года назад
@@Vitor77R If you still dont know, add into the Start Funktion: rb = GetComponent();
@Vitor77R
@Vitor77R 4 года назад
@@creapermann6356 seconds after the comment i saw one that helped. Thanks anyway bro!
@The_cheftable
@The_cheftable 4 года назад
I was looking for this too thanks man
@jehriko7525
@jehriko7525 4 года назад
@@creapermann6356 do you mean in the parenthesis where it says Start() in between there or below?
@lykeas9794
@lykeas9794 3 года назад
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
@JacoblBroughton
@JacoblBroughton 4 года назад
You’re a fantastic teacher, dude.
@thesaskill1372
@thesaskill1372 5 лет назад
Okay, guys if you are on Windows I can help you out: 1. for those who are having trouble going to Visual Studio, this is what you do: Make sure Visual Studio is on your desktop. If it isn't, you must download it. Then double click on "PlayerMovement". Not the title! The one below it. 2. For those who are having trouble with Rigidbody I can help you. Make sure to copy this: using UnityEngine; public class PlayerMovement : MonoBehaviour { public Rigidbody rb; void Start() { rb = GetComponent(); } void FixedUpdate() { rb.AddForce(0, 0, 2000 * Time.deltaTime); } } This is what I can only fix! IMPORTANT EDIT: I have found something that breaks Unity, don't delete everything on your script, only delete the ones below "public class PlayerMovement : Monobehaviour" then paste "public Rigidbody rb;" to " rb.AddForce(0, 0, 2000 * Time.deltaTime); } }" If you delete everything and paste everything, it wouldn't recongize MonoBahaviour and Rigidbody.
@dr4876
@dr4876 5 лет назад
The code got like 30 times more complex than before
@ramster4459
@ramster4459 5 лет назад
@@dr4876 nah only 1 line more and that is rb getcomponent.
@thiccyoshi4334
@thiccyoshi4334 5 лет назад
How tf do you make rigidbody a component
@AMV_KINGDOM_mv
@AMV_KINGDOM_mv 5 лет назад
Ty I'll try it
@beckhamngo2897
@beckhamngo2897 5 лет назад
Donerank L
@Spidoc
@Spidoc Год назад
How in the fuck does he change his code color. Can’t find that shit anywhere.
@bowlorice
@bowlorice 2 года назад
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 9 месяцев назад
Still doesn't work :/ Edit: Make sure to save the code, then it works
@sedgambit
@sedgambit 4 года назад
Hi, erm, I hope you see this as it's a bit of an older video but I'm running Unity Ver. 19 and trying to script through VS 2019...and having nothing but problems trying to get Unity to recognise the script I've followed on your video here. Initially it wasn't recognising "Debug.Log" as anything (until I partially typed it out and had to add the term from a list), then, when I DID get something in Unity (where it is supposed to say Hello, World in the console) it comes back with this error: Assets\playermove.cs(11,9): error CS0104: 'Debug' is an ambiguous reference between 'UnityEngine.Debug' and 'System.Diagnostics.Debug' As I said before, there seems to be a general lack of connectivity between the VS script and Unity (I launch the script in the same way that you do in the video, from within Unity). As you can tell I'm completely new to programming and to be honest this issue, as well as there being confusion over matching namespaces (when they are identical) is putting me off quite a bit. If you see this and can shed some light on this I'd really appreciate it and you would get a much-earned sub. Many thanks in advance.
@muhathahibbanu5006
@muhathahibbanu5006 4 года назад
same , i encountered that error too
@tusharshetty4532
@tusharshetty4532 4 года назад
you cant have a debug function operating while using unity engine and systems lib at the saem time notice how he removes them..
@TheChestermeedi
@TheChestermeedi 4 года назад
delete the code line 1 and line 2 in visual studio i think its those 2 lines basically at the top it should just say this: using UnityEngine; and nothing above it
@bonsai0076
@bonsai0076 4 года назад
I'm having a warning show up on the console tab. Says: "The referenced script (Unknown) on this behaviour is missing!" And it's repeated 3 times😂. Anyone... Please.... Help!! Edit: I kinda fixed it. I just cleared the console and moved on. I'm not sure what was going on.
@crimsonbeast360
@crimsonbeast360 3 года назад
Can anyone tell me how to get rigidbody into rb it is not working
@latviesulegionars8806
@latviesulegionars8806 3 года назад
@@crimsonbeast360 ah same problem as me
@ju1cyjon3s31
@ju1cyjon3s31 4 года назад
me: checks every little thing to make sure it matches his so i can turn off gravity and doesnt save the code to my game my computer: *confused noises* me: WHY ARE YOU NOT WORKING me 2 mins later: ohhhhhhhhhhhhhhhh
@00pop00lop
@00pop00lop Год назад
at 0:04 it said 89% C# and 10%Javascript, 89 + 10 = 99, where's the last one percent
@Blejo
@Blejo 7 лет назад
You halped me a lot with every your tutorial
@psis6786
@psis6786 7 лет назад
Blajo ha halp ma alat taa
@xpalefectx9681
@xpalefectx9681 7 лет назад
your grammar makes me believe your a kid
@majorcookie3512
@majorcookie3512 5 лет назад
My VisualStudio Doesn't show the colors you have on your text.
@anttooniowiklundo479
@anttooniowiklundo479 5 лет назад
not me either
@majorcookie3512
@majorcookie3512 5 лет назад
@@anttooniowiklundo479 Hmmm
@uwuman101
@uwuman101 5 лет назад
You probably didn't install some VS components
@linos6799
@linos6799 5 лет назад
GeneralUsman VS opponent?
@nenyashamajoboro3770
@nenyashamajoboro3770 4 года назад
I miss _print("Hello, World")_
@damnatioodiosis5537
@damnatioodiosis5537 3 года назад
I miss console.log("Hello World");
@anannoyingchild6764
@anannoyingchild6764 2 года назад
damn i couldn't exactly pin that accent down, but then i saw your name in one of the programs. of course you're danish
@chilledice4745
@chilledice4745 4 года назад
this actually helped me more than a course that i paid for 20 bucks lol
@Meklein
@Meklein 5 лет назад
when i do the public Rigidbody thing, the first time i type Rigidbody it stays and it dosent work. please help
@Meklein
@Meklein 5 лет назад
@Ajax Dossd thank you I will try this
@MichaelGonzalez-ly9uo
@MichaelGonzalez-ly9uo 5 лет назад
The pacing is great, RU-vid had this great feature that allowed me to go back in the video if I missed anything. Guys you should check it out!
@MeGustaWHAT
@MeGustaWHAT 2 месяца назад
You're so freaking wholesome. So glad you made this series, happy to have found it!
Далее
How to make a Video Game in Unity - MOVEMENT (E03)
8:57
I Made a Game Using ChatGPT
9:51
Просмотров 2,7 млн
Свадьба Раяна Асланбекова ❤️
00:12
He said I Couldn't Make a 3D Game... So I Made One!
10:29
I Made the Same Game in 8 Engines
12:34
Просмотров 4,1 млн
How to make a Video Game in Unity - BASICS (E01)
11:26
The Future of Game Development
8:58
Просмотров 1,2 млн
5 Years of Making Games in Unity!
13:27
Просмотров 2,3 млн
1 Year of Learning Game Development In 6 Minutes
6:01
Why I’m switching from Unity to Unreal Engine
9:02
How to Start Making Games with No Experience
10:55
Просмотров 69 тыс.
6 Years of Learning Game Development
9:02
Просмотров 2,4 млн