Learn programming with GDScript (Part 2)

  Рет қаралды 8,068

Godotneers

Godotneers

Күн бұрын

Hello Godotneers! In this second video about learning programming with GDScript we'll look at what objects, properties and methods are and how we can describe them in classes to model real-world objects inside of a computer program. We'll also check out what Arrays and Dictionaries do and how we can use them in certain scenarios to make lists and look-up-tables and streamline our code quite a bit with them. Finally we're having a look at how we can use all the things that we learned in these two videos to get started with our own projects. So join in for the second part and continue on your Godot learning journey!
Table of contents
===============
00:00 Introduction
00:35 Setup of the example project
01:41 Objects and properties
10:10 Classes and custom objects
24:53 Arrays
39:49 Dictionaries
48:37 What's next?
52:16 Conclusion
Useful links
=========
The example project: github.com/godotneers/program...
Step by Step guide: docs.godotengine.org/en/stabl...
GDScript Reference: docs.godotengine.org/en/stabl...
Godot Discord: / discord

Пікірлер: 62
@nommynomnon
@nommynomnon 2 ай бұрын
This is so comprehensive, you have a way with speaking and teaching no joke. I wish more tutorials were like this
@xbrc70
@xbrc70 5 күн бұрын
He shows me that teaching is a skill!
@xbrc70
@xbrc70 5 күн бұрын
The way you educate helps me have a deep understanding and the confidence to solve my own problems in the future! Thank you so much for putting so much thought and effort into planning and creating these lessons!
@Ulticutie
@Ulticutie Ай бұрын
Best Learning content for Godot, I assume you are a professional teacher. The way you teach and explain things is by far better then anything else on KZfaq.
@godotneers
@godotneers Ай бұрын
Thank you very much for supporting me! I'm glad the videos are useful to you!
@BR-ku3ci
@BR-ku3ci 2 ай бұрын
This series is hands down the best gdscript tutorial on youtube. Example project with challenges is pure gold
@El5iver
@El5iver Ай бұрын
You're tutorials are the reason I started coding it isn't just copying code and you teach amazingly.
@arthaslalordcraft1259
@arthaslalordcraft1259 2 ай бұрын
Can't wait for your next videos.
@SattarPahlavan
@SattarPahlavan Ай бұрын
we are waiting for part 3 🙏
@sixitis
@sixitis 2 ай бұрын
This is a great tutorial, thanks for creating this and sharing it for free. really clear and comprehensive explanation, perfect examples and even has challenges to solve. couldn't ask for more. Thank you!!
@Frostshocker
@Frostshocker Ай бұрын
After checking the first one I have to say this Part 2 is also excellent. Definitely going to share this with anyone who needs a "from zero" style video to get them going and I hope to see more from you in the future 👍
@kestrel77
@kestrel77 2 ай бұрын
This is so helpful, your videos are just on another level of clarity and usefulness. Thank you so much for providing it to us for free!
@avp2501
@avp2501 2 ай бұрын
Many thanks for your wonderful training videos. I'm a long time hobbyist C# programmer and I'm finding my transition to Godot much easier thanks to your effort.
@Hellscrom
@Hellscrom 2 ай бұрын
This must be the best tutorial-series for Godot! Thank you so much for your work!
@mariusznormalnie2579
@mariusznormalnie2579 Ай бұрын
INSANELY GOOD tutorial. Everything is well explained and very detailed!
@Dunkable
@Dunkable 2 ай бұрын
I need a beginner godot partner Love the series so far by the way, can't wait to see more
@MegaAsmodey
@MegaAsmodey 2 ай бұрын
Thanks! I love your videos.
@quanwashington
@quanwashington Ай бұрын
You're absolutely KILLING it! Ignore the haters who focus on how your art was made with AI, it personally looks great. I've introduced some friends to your material, and they absolutely love it.
@DaveScurlock
@DaveScurlock 2 ай бұрын
Your tutorials are so clearly explained - thank you
@dakotah4866
@dakotah4866 2 ай бұрын
Yay part 2
@StaleCookies
@StaleCookies 2 ай бұрын
Best Godot tutorials on KZfaq 🎉
@wormholeinteractive
@wormholeinteractive 2 ай бұрын
Thank you so much for this content!
@meteorogames9523
@meteorogames9523 Ай бұрын
I would love a detailed tutorial on how to setup the window settings for mobile games, respecting aspect ratios and stretching
@mrussogamedev
@mrussogamedev 2 ай бұрын
Awesome content as always thanks for sharing
@adlerkonrad1946
@adlerkonrad1946 2 ай бұрын
Man i cant thank you enough you are a god send , please keep going.
@phvianna
@phvianna 20 күн бұрын
Thanks, very thanks.
@MachineVersatile
@MachineVersatile 2 ай бұрын
Yeah, that's good because u teach us working with docs.
@a.m.c8559
@a.m.c8559 2 ай бұрын
love your teaching
@noelbarrot
@noelbarrot Ай бұрын
I'm struggling with understanding 3D transforms and how to manipulate them. It'd be great if you covered these as you explain things in a way which makes it easy to understand. Thanks for all your videos so far.
@pizzaturtle6226
@pizzaturtle6226 3 күн бұрын
You are awesome
@willd2609
@willd2609 2 ай бұрын
I would absolutely lose my mind if you were to do a tutorial on chunk loading and unloading.
@Asilhan
@Asilhan 2 ай бұрын
Great man thank you.
@tayete
@tayete 2 ай бұрын
I love your teaching style! Any chance to have some game AI tutorial in the future?
@engineerthings7486
@engineerthings7486 7 күн бұрын
Can u please give the example game links of older version like 3.5.2 because i have a low end pc
@flaviopsilva_
@flaviopsilva_ 2 ай бұрын
approved!
@sixitis
@sixitis 2 ай бұрын
Thanks!
@godotneers
@godotneers 2 ай бұрын
Thank you very much for supporting me!
@joshuahansberg3057
@joshuahansberg3057 2 ай бұрын
First of all i wanted to express my sincerest gratitude for your awesome work like many before me. Your style of doing something the most straightforward and simplest way and then correcting "yourself" has not just opened my eyes to a broadened and systematic way of looking at solving problems more than once (especially in your UI and data model videos), it also impressed me in regards to teaching techniques. Just a little side note from me as a fellow german. While you can use "before" positionally like you do in your video, most of the time it is either used temporal ("i was a bad programner before watching your video") or in a more abstract positional way like "sitting before the jury/judge". Your use of the word (function: "item_before_me) sounds very german to me and maybe you would be more on the safe side if you'd use "in front" instead. Not trying to nitpick only trying to give constructive feedback. But maybe it only sounds strange to me and our englisch native speaking friends would disagree. Best wishes
@godotneers
@godotneers 2 ай бұрын
I'm honestly not sure about "before". I've seen it used in different ways and the dictionaries also have direct positional examples like "we sat before the fire", "he stood before me". Maybe a native speaker can shed some light on this?
@Red-ys5qf
@Red-ys5qf 2 ай бұрын
​@@godotneers Native speaker here! I would say that using "in front" is more common, at least colloquially, than "before" in the context you mentioned. From my experience, I usually see sentences like "we sat before the fire" or "he stood before me" in more formal settings like literature.
@godotneers
@godotneers 2 ай бұрын
Great thanks for clearing this up! "In front of" it is then :)
@max-eb2wc
@max-eb2wc 2 ай бұрын
I need part 3 asap
@gabriel-xh8uo
@gabriel-xh8uo 2 ай бұрын
Thanks. I love your videos.
@dipaktelang6117
@dipaktelang6117 2 ай бұрын
please make full tutorial on how to make levels for scalable game.
@SootytheMagicalBear
@SootytheMagicalBear 2 ай бұрын
Another great video and demonstration project. Will there be a part 3? Also this part is melting my brain, I don't quite get how the variable gets the item name from the for loop. Or is it just because the Array and Dictionary share the names of the items? for item_name: String in item_names: var price_for_item = menu[item_name] total_price += price_for_item
@engineerthings7486
@engineerthings7486 7 күн бұрын
In my program there are no step forward or func what should i do can u pls tell from where we have to take them
@LEDLearningeveryday
@LEDLearningeveryday 2 ай бұрын
First of all, thank you for your very helpful tutorials. As a teacher I appreciate your style of teaching by showing how to solve problems instead of just quick fixing them. So I have a question about the dictionaries: To me it is not quite obvious, what the real benefit of a dicitionary is? The price of the item from your example illustrates this very good, because for me this would be something to include as a property in the class item like the item_name (#DataModels). This has the benefit, that whenever I create a new item I don't have to update the dictionary. Maybe you could give an example for a feature of a game, which can't be/shouldn't be handled via a data model but rather by a dictionary. Liebe Grüße aus Deutschland
@godotneers
@godotneers 2 ай бұрын
Dictionaries are mostly useful as lookup tables because they can very quickly find an item for a given key. If you want to store structured data, you can technically use a dictionary for that but a class is usually the better choice for this because you can give proper types to all properties and you get auto-complete. Dictionaries can also be used as a "Set" which is a data structure available in other programming languages. Say you have 5000 items identified by their ID and you want to know whether or not you have an item with a certain ID. If you use an Array to store the items, you will have to traverse 5000 items in the worst case to find out whether or not you have one with a given ID. If you use a dictionary for this (ID is key, item is value) your lookup will be a *_lot_* quicker.
@LEDLearningeveryday
@LEDLearningeveryday 2 ай бұрын
@@godotneers Thank you for your time. By the way: It would be very helpful for me if you could show in a tutorial how to use/setup the versioncontrol via github for a godot project. If this topic doesn't make it to the top of your videoideas, never mind. I still will watch your videos ;)
@BR-ku3ci
@BR-ku3ci 2 ай бұрын
Is there a way to use say() method outside of what_should_i_do() function? I'm trying to use say() in _input() function and it's not working there. UPD: i've found a way to do that - expand Mr G node and use speech_bubble's node method say()
@Study8873k
@Study8873k Ай бұрын
sir pls upload part 3
@jasonwilliams8730
@jasonwilliams8730 2 ай бұрын
👍
@9bhjw8
@9bhjw8 2 ай бұрын
thanks for making this amazing tutorial. i tried downloading the example project and open it but it shows an error due to vilkan drive. i can only run compatibility option. is it possible to follow your tutorial using my low end laptop?
@godotneers
@godotneers 2 ай бұрын
It should still work in compatibility mode, we're doing not anything fancy in there.
@9bhjw8
@9bhjw8 2 ай бұрын
@@godotneersthanks for replying. i tried but it sends me the error I even tried making a project and then copying the folders from the project but it failed. if its not too much to ask could you maybe export the files using compatibility renderer?
@godotneers
@godotneers 2 ай бұрын
I have updated both projects for part 1 and 2 to use compatibility mode out of the box. I hope this fixes your problem.
@9bhjw8
@9bhjw8 2 ай бұрын
@@godotneers thank you very much. i am very grateful for this tutorial series and your help
@jakab174
@jakab174 2 ай бұрын
How do you delete a line by a press of a button?
@tayete
@tayete 2 ай бұрын
ctrl+shift+k
@godotneers
@godotneers 2 ай бұрын
Or alternatively just press CTRL+X while nothing is selected. This will cut out the line.
@jakab174
@jakab174 2 ай бұрын
Thank you for the answer! Very nice series!
@antoniojohnson7547
@antoniojohnson7547 26 күн бұрын
Promo'SM
ARRAYLIST VS LINKEDLIST
21:20
Core Dumped
Рет қаралды 49 М.
Чай будешь? #чайбудешь
00:14
ПАРОДИИ НА ИЗВЕСТНЫЕ ТРЕКИ
Рет қаралды 2,8 МЛН
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 7 МЛН
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 123 МЛН
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 18 МЛН
RAG from the Ground Up with Python and Ollama
15:32
Decoder
Рет қаралды 22 М.
Rust Data Modelling Without Classes
11:25
No Boilerplate
Рет қаралды 161 М.
Animal Well: One Year Later! | Interview | PAX East 2024
12:31
Hypocritic GG
Рет қаралды 9 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 759 М.
zig is the future of programming. here's why.
9:34
Low Level Learning
Рет қаралды 208 М.
Programming portals for my DOOM-style FPS
17:15
jdh
Рет қаралды 199 М.
5 Tips For Object-Oriented Programming Done Well - In Python
16:08
Godot Debugging Techniques EVERY Dev Should Know
16:23
Bacon and Games
Рет қаралды 22 М.
How to make a Video Game - Godot Beginner Tutorial
1:17:12
Brackeys
Рет қаралды 1,1 МЛН
Чай будешь? #чайбудешь
00:14
ПАРОДИИ НА ИЗВЕСТНЫЕ ТРЕКИ
Рет қаралды 2,8 МЛН