How to program in Godot - GDScript Tutorial
HTML-код
- Опубликовано: 22 май 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 (RUclips 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
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
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.
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.
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.
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
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 🙌
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
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
Brackeys you couldn't have made this video at a more perfect time, we love you!
*Ey, it's you!!*
Hi caleb
It's the kid who ate a magic apple that turned him old in just 2 years, hello!
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.
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
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
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!
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.
'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
Those interjections that you make are really funny. They do help in breaking the monotony.
Also shows that tou havent lost your funny side. 😊
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!
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?
Learn C sharp if you want to be valid in the future.
@@TheMeanArenaScre you now I'm learning holyC
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'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.
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 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.
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!
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!!
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!!
These Godot videos have come out exactly when I needed them. Love em
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
brackeys you have no idea how happy i am to have you back- i switched to godot recently and have been having trouble finding tutorials- you are awesome
At 32:45 you add a ')' to the end of the line so fast, and then clear the text so fast after closing the Debug dialog box it is extremely easy to miss. I couldn't figure out why I was getting a compile error until I went frame by frame in the video to check what I had typed wrong. While this video is a fantastic resource, you should be mindful to let the complete text be visible long enough for us to pause the video to check our work. You often hit compile and run so fast, the dialog box obscures what you've just demonstrated.
Thanks for these videos. They are so informative!
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 just started studying Godot and these videos pop up. It's like he came back just to assist me.
Your way of explaining and sounding interested in what you yourself is saying makes this so much more enjoyable to watch. Thank you. All the other videos/playlist i try to watch put me to sleep...
I have been programming games for over 10 years, including over a year in Godot and GDScript. I enjoyed every second of this video!!!
You are raising the next generation of gane devs i cant describe how happy i am
Been waiting for this one
Same
Same
Same
Thank you Brackeys! I just started learning Godot and your tutorials came in a perfect timing
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!
👑
it been literally 2 week im waiting for this video, im soooo excited :))
19:07 okay, I wasn't ready for this joke, lol
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.
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!
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
thanks for coming back brackeys 😭
Happy to have you contributing to the Godot community! I really hope you do some content on c# and GDExtension.
I was watching your other Godot video when I noticed you just uploaded this an hour ago. Thank you so much for taking the time to make these tutorials!
YAY HERE YOU ARE AGAIN! LOVE YOU BRO ❤
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.
Watching the tutorials from the start of the series has motivated me to keep following through. Can't wait for the next video!!
This is an amazing and detailed explanation of everything. I've been programming for a while but I love how you explain things!
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.
Please keep making videos! I'd love to see a video about 3D in Godot.
This is the best tutorial on just general programming I have ever seen.
I don't even make games anymore but dang it's awesome to see you on RUclips smiling again. I watch the videos to see what it's all about.
You always had fun videos to watch.
Awesome! Thanks for your amazing content. Are you also doing C# tutorial for Godot?
No c# please.
this is really awesome but i do hope you'll talk about the c# support in godot as well at some point 🙂
Welcome back, man. I see you've picked up Godot. I think it's awesome that you saw the need and jumped right on it (in light of the mass exodus from unity).
Having said that, I think you could also benefit from learning and covering Gdevelop 5 (a lightweight, JavaScript engine that can export to HTML5, PC, Mac, and mobile) and Roblox Studio (a LUA based engine with built-in frameworks and libraries that handles online capabilities for the creator, by default). Thanks a million for your Godot content!
I love the way you explained classes and instances.
Nice! Next video C# in Godot? 🙂
hes gonna be using gd script for all his tutorials
Welcome back, King 👑
More tutorials for Godot please! We definitely need your content and your videos.
So glad to have you back! I would love to watch a video on coding concepts for beginners like finite states? Thanks for the great work!
Please Don't Go Now. I am really happy to see you back, and I am sure everyone reading this comment is happy too. So please don't go now.
Upload more GODOT game dev tutorial, we have all the hopes on you Brackey
this is wonderful Brackey & co! i loved your unity playlist back then, i cannot express my gratitude and enthusiasm enough, thank you!
Bro I love you
Under 1 Hour gang
Under 5 mins gang
Woot
Yuuurrrrr
Yesssirrr
Meeeeee
I will name my firstborn "How to program in Godot - GDScript Tutorial"
Real
im already naming my firstborn Vector3
Amazing video, thanks for putting your time to explain the most important features of the engine. As you already know for sure, there are a lot of topics to cover, here is a list of some to help spark some ideas: VFX particles, VFX shaders, How to export and import animations 2D and 3D, managing animations in engine, creating animations in engine, how can c# coders use godot, how to block out a level, good practices for prototyping, GD script part 2, All nodes explanation and examples part 1-5, 3D best practices, Spatial sound in Godot, VR in Godot, and much much more. I would love to see more content on Godot just simply because you make the best!
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!
15 seconds ago? Thank you Brackeys.
Next godot update: "why we're ditching gdscript"
Thank You for coming back, man! You are most welcome!
WAS WAITING FOR THISSS,
You’re a legend, this method of teaching gave me a lot of motivation to learn godot and continue to program my little game
this proves it, my mind now hears an Indian accent in every tutorial.
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.
So happy Brackeys is back and doing GoDot. I was doing hobbiest Unity dev for YEARS and just switch to GoDot like a month ago, and 2 weeks later, BAM brackeys is back. It's like he knew I needed the help.
I neeeeddd uniittyyyyyyyyy!!!!!!!!!!😭😭😭😭😭
Here's a tip brackeys, while making games in unity I still face many issues that you haven't already covered on your channel so maybe set up some way to get inputs from your audience who uses unity about the issues they're facing and put out a vid every month or so about the topic you see fit from those inputs. Please do something like this man👍🏻❤️...
Are you going to use C# as well in your tutorials?
Please no C#.
@@hipflipped Why?
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!!
So excited to learn GDScript, tried out godot recently and i am in LOVE, I think I really did find my true calling as a programmer.
hi This is first comment
no it wasnt
Yes it was
C# for Godot IS needed 👇who IS with me😂
No need for C#.
Most people just use gdscript
I'm with ya. As I'm currently trying to learn C# *and* Godot at the same time (I know, I'm making my own uphill battle here), the shortage of Godot C# tutorials is painful. I know I could technically try and convert a Unity tutorial over to Godot, but again since I'm still learning both, it's difficult.
When I started using Godot, I was also not a fan of gdscript since its lack of static typing and good editor support. However, the longer I worked with C#, I felt that it didn't mix well with the engine design philosophy. I gave gdscript another try, and I was amazed by how much quicker I was able to develop, because it fits the engine much better. I can very much understand wanting to stick with a familiar language, but I would strongly suggest giving gdscript an honest try.
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!!!
These videos have been great. I would love more videos about Godot. You taught me a lot when I first started dabbling with game dev as a way to explore programming in general. I had since left it behind but recently got interested in starting again, in large part due to Godot.
But honestly any topic you are passionate about would be wonderful, the joy and silliness in these videos was amazing.
these last two videos that you uploaded have been a great help! theyre very informative and entertaining. i cant wait for the next one!
Listened to this podcast style at work and I can't wait to actually watch it later and take some notes. I followed your last tutorial and it was SO helpful. 😭💖
I was really looking forward to this Video ever since the first tutorial. I’ve started working with Godot and it’s been really smooth sailing except for when I had to do anything more compex than a double jump in GDScript. Thanks for the great content!
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)
Even though i stopped using game engines and now I'm brewing my own, I'm glad you are back inspiring and teaching new and old devs and you are back on Godot and not unity. I never followed your tutorials too much but you are on of the most influential game dev teachers there are , keep up the work !!! 🔥🔥🔥
I've been doing godot for a while now but a lot of the concepts didn't make sense until now. Thank you so much!
Thank you so much. I'm learning Godot with a tutorial and I realized that getting down gdscript more comfortably would be a great next step.
Thank you so much for this new videos on Godot! I created my first game in Unity last year following your tutorials, but the whole drama around the Unity hit me pretty hard and I lost interest in studying game development in general. Your return has made me very hyped up to continue learn Godot. Cant wait for the next videos!
Top tier quality tutorial. Easy to follow along, concise and covers what's important
Thank you King! Welcome back again and cant wait for more Godot videos!
I learned Unity from you, and now I get to learn Godot from you too! I've spent my entire life learning from your channel, I really appreciate the work you do to bring what you've learned to the world at no cost :D