How to program in Godot - GDScript Tutorial
Vložit
- čas přidán 15. 07. 2024
- Learn GDScript in 1 hour!
► Get 1 week FREE and 40% OFF on CodeCrafters: app.codecrafters.io/join?via=...
● Our Godot MEGA Tutorial: • How to make a Video Ga...
❤️ Donate: www.paypal.com/donate/?hosted...
● More on Input: docs.godotengine.org/en/stabl...
● Bitlytic's video on Composition: • How You Can Easily Mak...
● More on Call down, Signal up: kidscancode.org/godot_recipes...
● GDScript Style Guide: docs.godotengine.org/en/stabl...
····················································································
► Join Discord: / discord
● Website: brackeys.com/
····················································································
► All content by Brackeys is 100% free. We believe that education should be available for everyone.
❤️ Donate: www.paypal.com/donate/?hosted...
····················································································
🎵 Disco Knights - Quincas Moreira (CZcams Audio Library)
····················································································
TIMESTAMPS:
0:00 Intro
2:25 Hello, World!
4:01 Syntax
5:00 Modifying nodes 1.0
6:33 Input
8:38 Variables 1.0
10:31 If-statements
13:00 Comments
13:45 Variables 2.0
18:28 Functions
22:27 Random numbers
24:09 Documentation
24:33 Arrays
26:35 Loops
30:24 Dictionaries
33:54 Enums
36:58 Match
37:57 Modifying nodes 2.0
40:34 Signals
44:29 Get / set
47:18 Classes
51:40 Inner classes
53:20 Inheritance
55:10 Composition
55:29 Call down, signal up
57:06 Style
57:22 Puuuh, good job!
► Get 1 week FREE and 40% OFF on CodeCrafters: app.codecrafters.io/join?via=Brackeys
Also, 11:25 should of course show "is less than or equal to" as x
Love your vids
OG returned ???
I tried to follow what I learned from Brackeys' channel and created a game, which I turned into a video on my own channel. Now I finally understand how difficult making games can be.
Hello Wizard….. can you please also cover in future how can I setup Swift language to develop games in Godot engine using GdExtensions?
Part 2 pls
Being mentioned by Brackeys is unreal, your tutorials were what got me into game dev. Appreciate the shout out! Looking forward to the other Godot videos
hey, I watched your video about components :)
Brackeys is bitlytic stan!!!!!💯💯💯💯💯 i know that guy and am featured on his channel!!!!!! we have very good social credit!!!!
bitlytic's my singing monsters' friend code is 1055659936MI if you feel like thanking him light some torches and join our tribal island!!!
Me too! Super important stuff explained very well @@NullCyan
I have a question. Is it not totally unnecessary to instantiate a node for a health script?
It does some calculations but does not make use of the node functionality.
If you had lots of objects with nodes attached does it not take more processing power?
I think you can do the same by scrips alone and maybe extend from Object for the most basic stuff.
2 weeks felt like 2 decades waiting for brackeys to upload again!!
true
Yknow i was really waiting for this since my skills were holding me back, and chatgpt is outdated with godot 4.2, so that didnt work either.
@@sunshinecoco12don’t use ChatGPT for programming as you learn nothing
@@sunshinecoco12don’t use ChatGPT for programming as you learn nothing
i almost died waiting
In response to 57:48 I would love to see a tutorial dealing with 3D. In your first 2D game tutorial you mentioned that in Godot it is very easy to transfer 2D concepts to 3D so that seems like the next logical step.
Yes I need this
I completely agree!
I hope he sees this!
I would love to see tutorials on:
-> how to make a 2d (pseudo 3d) game without physics but rather with mouse interaction (e.g. card game)
-> how to properly implement menu systems
-> how to make a 3d (insert vehicle)-simulator kind of games
oohhh - card game 🙌
Oh I hope he sees this. I've been wrestling with mouse interaction for the past hour and a half.
I was like "oh I just check if the input action is being done and if the cursor is inside the area2d" and apparently it's not that easy, or I'm missing something.
I'm not sure how to use the signals and functions for that, as trying to wrestle those and if statements together is like pulling teeth.
@@thefaksk3jk Yeah, but I would like to see a general tutorial about Control nodes and interaction with game properties (Resolution, Bus volume, etc)
I can’t describe in words how happy I am that you are back
Same
How about in sounds? I think sounds work
word
@@daBulgarian **YAMETE KUDASAI~**
same
Hello Brackeys, the market is flooded with a large number of introductory tutorials. There are many tutorials for many basic concepts that you can refer to, but there is very little information explaining the advanced concepts or mechanisms of Godot, such as the complete life cycle of nodes and hooks, and the concept and use of resources , memory management related, complete input processing flow, data serialization and deserialization, saving and loading, etc. I would be particularly excited to see these contents in your channel.
👆 this!
This is true, but still, of all the "beginner tutorials" to Godot these are probably the best that have been made now. I hope they eventually get to making advanced tutorials too! If anything, I'd love to see a devlog series. That'll give them a way to talk about advanced topics while still keeping viewers who aren't interested in learning about those specific topics.
thank you
Check out @christutorialsyt
Yes! I would love some data serialization! I'm still new to the engine but learning serialization is super important for so many projects.
Teacher here. Bro you're awesome. It must've taken some time to figure out exactly what to say and in which order, for you to make it so understandable.
I have to admit, Brackeys, the new level of showmanship you put in these new videos is awesome. Way beyond using a meme or a sound effect. The cooking metaphor in your last video went way beyond what most GM tutorial producers would even dream of.
I love the style of your videos. The editing is on point and you don‘t add annoying background music. This woks so great because you utilize your voice perfectly. No monotone sentences, pauses between sentences / paragraphs that have the perfect length, …. Everything is just perfect.
And the volume control and compression is on point, I don't have to adjust my volume JUST for his videos.
Top quality all around!
Me: Do you smell it
You: What
Me: It's the goat
AND HE IS COOKING👌
the goat is never washed
@@MagicianofBlackChaosstinky goat
Goat turd
'Hopefully you'll be able to use this as a reference manual going forward'
As a visual learner, this perfect. I struggle with trawling through so much documentation when at the bottom of a learning curve. Thanks Brackeys!
Brackeys proving exactly why I feel Abused by RNG on a roll() 20% chance to get a 5% result. Love it
He came back when we needed him most, after the trust in Unity has been lost and we needed Godot tutorials, the true hero
Theres 100+ high quality tuts and courses before this lol ..
@@samwholearns3023 but none of them from Brackeys duh...
@@samwholearns3023 no. i want his tutorials👺
@@samwholearns3023 yeah but brackeys has a lot more reach,plus we are 100% sure that his tutorials will be good
@@samwholearns3023 agreed but this one is AMAZING
Brackeys you couldn't have made this video at a more perfect time, we love you!
*Ey, it's you!!*
Hi caleb
I never understood how Classes were structured in Godot, and I didn't feel like learning because every resource was so unengaging. But now finally I have an engaging way to learn about them!
So true, i could not agree more. I love how Brackeys uses examples to explain concepts. 😊
I spent most of my week waiting for this video while I was confused with a lot of GDscript. This is a breath of fresh air and I thank you for this!
A simple 3D game would be great! Now a beginner could first understand the fundamentals of programming, then use those ideas in action by creating two simple games that they could expand upon!
Get this to the top!
Bookmarking this to come back to later 👀 thank you for this new series 🙏
Brother i have watched your videos, you're pouring pure love into those gems❤.
Btw are doing any godot videos?
@@TheMeanArenaScre you now I'm learning holyC
@@TheMeanArena Why specifically C#? Why even be a gatekeeper at all?
Making games as a solo dev has never been more accessible. These are tutorials and resources I WISH I HAD like 10-15 years ago.
Thank you so much for this 1-2 punch combo Brackeys. My friends murmured rumors of the King coming back. I had to see it to believe it. I believe. I believe!
👑
Love the new Godot Videos! Watching them religiously and learning so much! PLEASE KEEP IT UP! I would love to see something on more advanced 2d movement mechanics drawing from difficult games like Celeste and Jump King. Maybe a "Make your first precision platformer in Godot" or an intermediate platformer walkthrough with combat and more advanced movement, etc. THANK YOU!
Even though I already know how to use GDScript, I will still be watching this entire video, because I'm just so happy that you're back!
If you haven't, make sure that you do. I have been using GDScript for awhile now and this video still pointed out some things to me in a way that I had not thought about previously.
@@general_jacob8949 Exactly. I feel like even the most seasoned developers can always learn something from a Brackeys video.
Brackeys I am so glad that you are back and working in Godot! I am a new programmer working my way through college, and started making video games as a hobby. I used to watch your videos for Unity, but after all the drama last year, I became disheartened with Unity, and took a break. At the start of this year I started researching other options, and began coding in Godot. I'm still pretty new to it, and am looking forward to using your videos to help myself improve.
i actully started to use godot like 3 days before your arival so now having this is a blessing finding whats in the second half of the video is harder than it should be
Those interjections that you make are really funny. They do help in breaking the monotony.
Also shows that tou havent lost your funny side. 😊
I have been watching your videos for the better half of a decade and it is no exaggeration to say that you are the sole reason for my career in game dev. I will always be grateful to you for everything you have done and are doing. I have been looking forward to getting into godot but could never find the proper motivation to do so but now here we are again. Thank you from the bottom of my heart and keep making awesome videos.
You are raising the next generation of gane devs i cant describe how happy i am
Even as a person who has already been meddling with Godot for at least a little while, I know I'll absolutely be coming back here for refreshers every once and a while!
Brackeys!! Yes!! Please more Godot tutorials! The community is growing very fast. :D
Been waiting for this one
Same
Same
Same
Hey Brackeys I've just got to say that I started watching your Unity videos just weeks after you left, and it is so fun to follow along while you post in Godot. Take care and keep up the good work! Making games is so much fun but I would not have ever started without your videos.
I've already been working in GDScript for a while but this video was so clear and concise that I still feel like I learned things!
These Godot videos have come out exactly when I needed them. Love em
I'm in the middle of doing another person's tutorial, but I had to stop that and watch Brackey's video as soon as it came out. Brackeys is just too dang good!!
I don't even make games anymore but dang it's awesome to see you on CZcams smiling again. I watch the videos to see what it's all about.
You always had fun videos to watch.
these last two videos that you uploaded have been a great help! theyre very informative and entertaining. i cant wait for the next one!
I've had so much fun with Godot, and I'm so happy to see the community growing. Thank you for these videos!
Glad to have you back. You have a knack for explaining to beginners so I'm so happy you are supporting the Godot community.
This is such a great video for an intro to gdscript. High quality and to the point, and I'll be bookmarking it for when I pick up godot again! I didn't realise how much I was missing Brackeys, so thank you for returning with your exceptional quality.
Dude Brackeys you make this stuff so interesting and understandable. The examples you give for use-cases for all of the code you're teaching us is leaps and bounds more helpful than so many other tutorials and lectures I've seen. You make me excited to code, I have *NEVER* been excited to code!
it been literally 2 week im waiting for this video, im soooo excited :))
I just started studying Godot and these videos pop up. It's like he came back just to assist me.
Bro I love you
Brackeys, I started making games in Unity and used to follow your tutorials back in college. Now, after roughly 7 years, I have started learning Godot and this tutorial is a great way to start. Thanks for all the help man:):)
YAY HERE YOU ARE AGAIN! LOVE YOU BRO ❤
Yippee!!!!! Thank you so much for this (to be watched) and the previous video. I've learned so much already and was able to add a bunch of features to the base tutorial game like double jumping, coin blocks, moving platforms that change direction when colliding and more!! You've given me an amazing foundation to understanding godot with that one video and I'll never be more appreciative, thank you thank you!!
Having watched it, again thank you!!! Lots of great stuff in the second half especially. As for future videos, I'd love to learn about behaviour trees! There seems to be a lack of good information on them in the Godot community and it's something I have a lot of interest in utilizing
I've been learning Godot for a few weeks now and thought I knew the basics of GDScript well enough until you got to enums, then many things past that point were new to me. Great video!
Thank you King! Welcome back again and cant wait for more Godot videos!
It is unreal how coding in GDScript seemed impossible to me, and this bastard comes and makes it easy!
it was already pretty easy though, let's be real, he just gamified the docs :)
@@saibamoe thing is, it's not too hard, it's just that I couldn't find anyone that explained the diferent parts without being just a game tutorial
Happy to have you contributing to the Godot community! I really hope you do some content on c# and GDExtension.
I have been programming games for over 10 years, including over a year in Godot and GDScript. I enjoyed every second of this video!!!
Only two weeks after the first Godot video, and you have made a well edited and nearly hour long video on GD script!
That is really impressive, so thank you!
thanks for coming back brackeys 😭
I do not use Godot, I don't know if I ever will, I don't even do much game development anymore, but boy do I love Brackeys and boy did I miss him!
Also, yes, yes I did watch the whole thing.
It's just so great that you're making videos again! I love your channel and have been subscribed for a long time! Keep up the awesome work!!
I love his attitude, he seems genuinely happy to teach us!
Please keep making videos! I'd love to see a video about 3D in Godot.
Uploaded unity bangers...
Disappeared for 3 years...
Came with godot tutorials...
Again disappeared...
Real chad 🗿
sadly
😞
I'm glad your back Brackeys you helped me a ton when i started game creation
Watching the tutorials from the start of the series has motivated me to keep following through. Can't wait for the next video!!
It's hard to come up with exact words to describe how glad I am to see godot tutorials made by someone as experienced as brackeys.
For me now the official acronym for GDScript is Gandalf Script.
Glad to have you back.
i really love that you came back from being inactive after so long. Happy to see you back and your work is better than ever! (I already learned godot thanks to your tutorial)
I would like to see a tutorial about shaders in godot
Welcome back, King 👑
This is the best tutorial on just general programming I have ever seen.
Two EXTREMELY good videos back to back! Thanks for these and its good to see you making a few videos again!
19:07 okay, I wasn't ready for this joke, lol
Awesome! Thanks for your amazing content. Are you also doing C# tutorial for Godot?
No c# please.
This comes at the perfect time! I watched your Unity videos religiously and they've helped me become quite fluent in Unity. This summer I was hoping to learn a new game engine, and so this is the perfect opportunity!
Thank you for coming back, it just feels good to learn to create games from you.
this is really awesome but i do hope you'll talk about the c# support in godot as well at some point 🙂
2 Months later. That's it? Hoped you would upload more frequently again wiith interesting tutorials or Projects again...
I'm glad you're back and thank you for this video. It has made me more comfortable with GDscript and has made me more confident in my game ideas.
Thank you so much. Not just for coming back, but coming back to teach us Godot after what Unity put us through. You're the hero we don't deserve.
@Brackeys can you teach 3d in godot to pls
Pyhon-syntax 0:09
These Tutorials for Godot are literally the best I've seen in a long time! Please, please make more :D
The part about signals had me on the edge of my seat. With Brackeys making videos again, nothing will stop Godot!!!
Under 1 Hour gang
Under 5 mins gang
Woot
Yuuurrrrr
Yesssirrr
Meeeeee
Upload more GODOT game dev tutorial, we have all the hopes on you Brackey
I love the way you explained classes and instances.
Ive been trying to learn GDScript and Godot for the past 7ish months (no prior experience on coding + gamedev) and OHMYGOD I don't know why but the way you explained properties just clicked!!! I just spent 45min on the first 7 minutes of this video exploring more and playing around with the font properties. I finally understand how to reference a class, and then read the documentation for each property like wtf!! I also figured out for example on the Label node in the Inspector, whatever Property you would like to know more about you can right click on it and you can copy the property path and open the documentation for that property. Wow thank you!!
Who is learning Godot after he learned Unity like me?
Nice! Next video C# in Godot? 🙂
hes gonna be using gd script for all his tutorials
This video also doubles as a simple but robust introduction to programing. All the basic concepts are explained in short, easy-to-understand ways while also showing their applicability.
Thank you very much for this tutorial.
Bro, glad you’re back. I remember when you first started Brackeys, it’s been so long.
Waiting for a 3D tutorial
cool now c# godot next
Love the tutorials so far. Clean and beginner friendly, while still slipping in a few useful hints for more experienced developers. I'm going to recommend these to my nephews.
this is wonderful Brackey & co! i loved your unity playlist back then, i cannot express my gratitude and enthusiasm enough, thank you!
What about C# support in the new version of Godot? Will there be a video about this for those who learned C# for Unity?
I think gd script should be the only language, two languages in one engine dosnt work well, gd script is similar to lua so it’s not that hard to learn
Where are you Mr Brackey? We Need more content! 😅
😭
I LOVE THAT YOU’RE BACK!!
this is genuinely the best GDScript tutorial i've ever seen, i struggle with ADHD and videos like this usually make me zone out the whole time but brackeys' voice is so engaging that it's really interesting
brackeys will you continue to make godot toutirsals or are you leaving now
wil there be a 3d game tutorial
Good to have you back
YOU'RE BACK!!!!!!!!!!! thats awesome!