GDScript (and Programming!) for Beginners in Godot 3.2

  Рет қаралды 134,701

Code with Tom

Code with Tom

Күн бұрын

In this video for absolute beginners, I introduce the concepts of variables, functions, comments, operators, conditionals and types in GDScript for Godot 3.2.
These core concepts are the fundamental building blocks of every programming language, and once you have mastered these key programming for beginners concepts you will have built a solid foundation to continue your game development journey.
I would highly recommend you visit the official GDScript documentation for further reading: docs.godotengine.org/en/3.2/g...

Пікірлер: 217
@DeadahGas
@DeadahGas 2 жыл бұрын
This may be 2 years later but this might be the best tutorial I’ve seen in my life
@Voidead_
@Voidead_ Жыл бұрын
Respect
@M_S_G.
@M_S_G. Жыл бұрын
Its always the oldest videos with the best tutorials
@tpbanimations
@tpbanimations Жыл бұрын
What game your working on?
@DeadahGas
@DeadahGas Жыл бұрын
@tpbanimations I gave up on the project for now my lap top broke and I just got a job but the idea was a 2d platforming shooter where you start as just the head of the cyborg and every boss you kill you get more body parts and new abilities with them the setting is in the mountains and hills near a run down village
@zen4ever3
@zen4ever3 11 ай бұрын
@@DeadahGasplease don’t give up. Get another computer the first chance you get and continue on with your project in your spare time.
@KILLERMANGO-mi1cx
@KILLERMANGO-mi1cx 3 жыл бұрын
In 20 Minutes U took A person thet Literally knows nothing about Coding to a pretty good level thank you so match
@mistorsmiles6568
@mistorsmiles6568 4 жыл бұрын
I scoured the face of youtube for a couple days, and this tutorial helped me the most! thanks boi
@CodeWithTom
@CodeWithTom 4 жыл бұрын
You're very welcome!
@synthblade
@synthblade 4 жыл бұрын
Very descriptive and articulate. Definitely going to sub and watch more.
@CodeWithTom
@CodeWithTom 4 жыл бұрын
@@synthblade thanks I appreciate it
@gimonfu2158
@gimonfu2158 3 жыл бұрын
@code with tom I too the same
@colinperry654
@colinperry654 3 жыл бұрын
same...
@chaunceya648
@chaunceya648 4 жыл бұрын
Please do more like this. Your way of teaching and focus on the fundamentals is the best in Godot right now. Thank you so much for your work. :D
@CodeWithTom
@CodeWithTom 4 жыл бұрын
Thank you so much for your kind words Chauncey, I really appreciate it. More coming soon.
@birthdaythesuit00
@birthdaythesuit00 Жыл бұрын
Yes please, keep them coming. New sub.
@mrweevilcom
@mrweevilcom 3 жыл бұрын
Man, you should make more videos like this gradually complicating the topic. With your ability to explain things you should have way more subscribers.
@Jimmotimmolime
@Jimmotimmolime 3 жыл бұрын
Straight up the best intro to code video I've seen! Nice work Tom!
@jimothy4
@jimothy4 4 ай бұрын
yuum
@MortissCoffin
@MortissCoffin Жыл бұрын
Incredible tutorial! I was able to understand everything you were explaining. It all made perfect sense the way you described. Extremely helpful! I'm actually grasping GDScript more now thanks to your videos. The language itself kinda puts me in the mind of a mixture of Python & Lua scripting. Very informative!
@chriscorbett666
@chriscorbett666 3 жыл бұрын
Hi Tom. You are an excellent teacher. Keep going with tutorials, you are a cut above most on youtube. Cheers!
@CreativeSteve69
@CreativeSteve69 4 жыл бұрын
omg thanks so much for making this video Tom. I have learned basic GDscript through a udemy course and can't wait to expand my knowledge to use in future gamejams. :)
@CodeWithTom
@CodeWithTom 4 жыл бұрын
You're very welcome Stevie!
@stephenweishaar9058
@stephenweishaar9058 4 жыл бұрын
Got a subscribe! Love the fact that you explained the basics of the scripting. Need more basic tutorials please! Have an 11 year old that talks of game development, so would live to be able walk with him through the basics and neither of us have any programing/scripting experience. Very helpful video! Would love to see more basic and focused videos on say creating and moving a Player Character, then the same for an Enemy, or level creation and the list just goes on! Please do more!
@CodeWithTom
@CodeWithTom 4 жыл бұрын
Hi Stephen, thanks for your comment. Glad you found this video, it would be awesome if you and your 11 year old could create a game together :) More tutorials to follow so be sure to keep an eye out :)
@knightgamer1533
@knightgamer1533 4 жыл бұрын
Thanks for the video please don't stop here please make a complete guide
@CodeWithTom
@CodeWithTom 4 жыл бұрын
Will do!
@knightgamer1533
@knightgamer1533 4 жыл бұрын
@@CodeWithTom thanks sir
@captainkawaii666
@captainkawaii666 Жыл бұрын
I learned way more from this tutorial than I have anywhere else, this is really useful!
@jimothy4
@jimothy4 4 ай бұрын
bro i tried finding tutorials for so long and i found this one and its so good 👍🏼
@Pygorable
@Pygorable 3 жыл бұрын
you explain things very clearly. it's very easily understandable, especially as a person who's used python before. also, you have a very good voice, unlike many other programmers on youtube I've seen so far.
@Fishingish
@Fishingish 2 жыл бұрын
he doesnt
@zeusexmachina3991
@zeusexmachina3991 3 жыл бұрын
I know very basics of C++ (creating methods, classes, functions, constructions etc.) and this helps me a lot when learning another language.
@FlynnFromTaiga
@FlynnFromTaiga 2 жыл бұрын
I like how you describe new concepts. Very good video, thank you for your work.
@Agent-mk1rh
@Agent-mk1rh 3 жыл бұрын
Thanks. I needed really basic information and this was the only video I found that had it.
@Ostnizdasht206
@Ostnizdasht206 4 ай бұрын
Short and easy to understand. Great tutorial.
@danobra
@danobra 3 жыл бұрын
I can't wait for the next video!
@geoToast
@geoToast 6 ай бұрын
Thanks you for this video, it s the best tutorial on YT I have seen :D
@ThePurpleShadow123
@ThePurpleShadow123 3 ай бұрын
I am going to say this in the nicest way possible. YOU ARE PRONOUNCING IT WROOOOOOOOOOONG!!!!!!!!!!!!!
@EasyBit_Ez
@EasyBit_Ez 6 ай бұрын
Awesome tutorial, I stopped watching a different tutorial just to watch yours!
@thomaseubank1503
@thomaseubank1503 3 жыл бұрын
Tutorials like this are working great for me, that is ones where you might go through various coding exercises to help make this into a skill.
@arnaudullens1406
@arnaudullens1406 Жыл бұрын
This is a really good tutorial. Unfortunatly, you don’t go deeper. But you give all the keys to move on !
@bog_champ2172
@bog_champ2172 3 жыл бұрын
your my favorite godot youtuber
@vatan2578
@vatan2578 4 жыл бұрын
Thanks much it's very good. Please continue the trainings.
@CodeWithTom
@CodeWithTom 4 жыл бұрын
Thank you, I will
@user-zl7tq9tp7x
@user-zl7tq9tp7x 3 жыл бұрын
Nicely done. Thanks!
@genxindia1154
@genxindia1154 3 жыл бұрын
Thats some awsome work bro, thaks a lot.
@Loys-vo7cz
@Loys-vo7cz Жыл бұрын
You are dope bro! Damn , thank you so much, subbed
@biomech101
@biomech101 4 жыл бұрын
Really looking forward to more GDscript tutorials. I hope you include tutorials for both 2D and 3D games since I know the code commands and syntax changes a bit between 2D and 3D. I’m currently working on a 3D 3rd person shooter that will have multiplayer so I have lots to learn lol. Hope your up to the task of making tutorials all the way up to advance development. I would love to give the player the option of both match-making and inviting friends to a private party. If there is already a book out there for GDScript for Godot 3.2.2 or the upcoming Godot 4.0 please let me know as commands and syntax will change a bit between the versions and I would like to know what to change to make my code continue to work in 4.0. :) Creating an advance 3rd person camera controller that does not clip through walls and allows player actions such as jumping crouching and climbing ladders or on top of objects like cars would be amazing!
@CodeWithTom
@CodeWithTom 4 жыл бұрын
Thanks! I will definitely be covering both 2D and 3D however since there is already a lot of content out there for 2D, my channel right now is focusing more on scripting and 3D.
@ot5559
@ot5559 4 жыл бұрын
Please make more. You explain things well
@christophermyers6372
@christophermyers6372 4 жыл бұрын
Thank you, this video was very helpful.
@syedrizvi6408
@syedrizvi6408 4 жыл бұрын
Super tutorial. I started learning GODOT 4 months ago. But I learned from youtube, and understand that all teachers focus on the programmer who have prior knowledge of other programming. I appriciate and welcome your method of teaching. I finally started understanding GDScript Thanks a lot Tom I look forward for your more tutorials
@CodeWithTom
@CodeWithTom 4 жыл бұрын
Thank you so much for your feedback Syed, great to hear that you're enjoying the tutorials and learning lots! Looking forward to bringing you more content
@frankoesavage8314
@frankoesavage8314 4 жыл бұрын
im interested in seeing your progress
@syedrizvi6408
@syedrizvi6408 4 жыл бұрын
@@frankoesavage8314 Thanks a lot What method would you like so that you can see my progress
@frankoesavage8314
@frankoesavage8314 4 жыл бұрын
@@syedrizvi6408 r u combining the codes?
@syedrizvi6408
@syedrizvi6408 4 жыл бұрын
@@frankoesavage8314 Yes. I am trying to combine a couple of codes. I was able to combine few of them. Like clicking an sprite and dragging and bringing to a slot. You may watch this on my channel. Please visit my channel. I am experiencing problem, while dragging.
@rhevoramirez7969
@rhevoramirez7969 3 жыл бұрын
Why didn't you show how you created 'player' on your scene? Whatkind of node is 'player'? I'm new to godot.
@kizz06
@kizz06 3 жыл бұрын
Very helpful, subscribed!
@praveengupta8938
@praveengupta8938 8 ай бұрын
Thankyou sir best tutorial ever?😊❤
@artvandelay8830
@artvandelay8830 3 жыл бұрын
Really helpful, thanks a lot!
@TheNon-DigArtist
@TheNon-DigArtist 4 жыл бұрын
Great vid tom, thanks! :-)
@CodeWithTom
@CodeWithTom 4 жыл бұрын
My pleasure!
@samthesupreme5752
@samthesupreme5752 2 жыл бұрын
AMAZING VIDEO!! THANK YOU
@thomasparker7305
@thomasparker7305 4 жыл бұрын
That was a very good tutorial. I was wondering I seen on the godotforums a page where you was asking for help simulating very far objects. I was able to download the code and it works the way I need it to for a game I'm working on but when I try to do the code in my game I'm doing some thing wrong. On the page you said some thing about doing a video on how to do it. I was wondering if you was going to do that video. It is some thing I have been trying to do for a while and I don't know what I'm doing wrong in my project. Thank you.
@CodeWithTom
@CodeWithTom 4 жыл бұрын
Hi Thomas, thanks for the comment. Yes I definitely still plan on covering that topic soon.
@omtiwari5303
@omtiwari5303 3 жыл бұрын
Sir I am new to programming I am from class 8th You are teaching very good Thankyou for these videos
@shorty4224
@shorty4224 4 жыл бұрын
Hey great video, but i have some questions. On the logical conditionals part, first you set the alive true and health to 0 and the output was "You died". The first question is that a boolean and integer can be compared ? And how did it show that you died if the alive was true?
@cherryblossoms5970
@cherryblossoms5970 5 ай бұрын
Very good explanation of how to write script thanks. One thing correct me if I'm wrong (woo i write a condition) So that function is by itself is like variables the difference is we assign value for variables with var name value. And function keeping data in brackets but when we calling that individual function in ready function we are assigning the value for that function. ( it is not you its me who understands things very slowly sorry about that ) This is the video i was looking for so long but didn't tapped on it. Thanks again. Watching it again later.
@danielleberry-massey7662
@danielleberry-massey7662 3 жыл бұрын
Thanks so much for this!
@adityasamudre2291
@adityasamudre2291 2 жыл бұрын
thank you !! you teach really nice.
@ruslanmakarov1509
@ruslanmakarov1509 2 жыл бұрын
Perhaps explain how 'a' and 'b' work in function lines? Gotta break down every part
@mrw2202
@mrw2202 Жыл бұрын
This was amazing.
@darkestb3rry
@darkestb3rry 4 жыл бұрын
Great video! Whens the next one coming?
@CodeWithTom
@CodeWithTom 4 жыл бұрын
Thanks Phoenix, I think the next one will be within the next few weeks.
@cappedminer369
@cappedminer369 Жыл бұрын
10:02 how do I create a player ?
@freddysingbot7400
@freddysingbot7400 2 жыл бұрын
you gave me hope that I could be able to code afterall
@syedrizvi6408
@syedrizvi6408 4 жыл бұрын
We are waiting for the next tutorial, anxiously. Please take your time. But please keep in mind, we are waiting.
@CodeWithTom
@CodeWithTom 4 жыл бұрын
Next part is available now :)
@crazyass2eat
@crazyass2eat 4 жыл бұрын
Thank you very * 100 much bro
@diegomata1062
@diegomata1062 3 жыл бұрын
What would you say is the best way to learn the syntax of any programing languaje, i learning slowly and the syntax is a problem for me
@cole1
@cole1 3 жыл бұрын
13:02 How did the parameters A and B get associated with the var "number" and the 10 in the add function?
@ThatYapper
@ThatYapper 3 жыл бұрын
So its like a fill in the blank So "add" Is a function meaning you can choose what it does, in this case he choose to add 2 values, so when you do "add( x + x)" It doesn't add because you wrote "add" It adds because you told them that when someone writes add you are suppose to do this(var result = a + b) I am pretty sure it auto adapts if there is 2 value
@nacidi5353
@nacidi5353 3 жыл бұрын
I am late, but will it be easier to understand gdscript with Lua experience?
@templetherapy
@templetherapy 4 жыл бұрын
Thanks much it's very good🤯
@CodeWithTom
@CodeWithTom 4 жыл бұрын
You're welcome!
@jozef18591
@jozef18591 2 жыл бұрын
nice tut :P
@yoinkling
@yoinkling Жыл бұрын
For some reason there's repeatable glitches in the audio for my headphones.
@kini6016
@kini6016 3 жыл бұрын
How did you get the world and player nodes
@mrorange159
@mrorange159 3 жыл бұрын
Thanks for this
@roaarabie2400
@roaarabie2400 Жыл бұрын
it's a good totourial can you make a play list that you make in it a visual scripting language or what???
@yourkodi3945
@yourkodi3945 2 жыл бұрын
2:45 bump up the font size, how did you this pls?
@slightlywetbaby830
@slightlywetbaby830 2 жыл бұрын
I would also mention that Godot uses print type for the Language. So var Time_Delay is better than using var TimeDelay
@karyrus6384
@karyrus6384 3 жыл бұрын
Thank you man
@sujeewa8067
@sujeewa8067 4 жыл бұрын
Thanks a lot pal!
@CodeWithTom
@CodeWithTom 4 жыл бұрын
No problem 👍
@wesselvankoeverden9842
@wesselvankoeverden9842 3 жыл бұрын
how did you start with a pkayer sprite i started with nothing
@GMFrames
@GMFrames 3 жыл бұрын
thank so much!
@radityaz5424
@radityaz5424 3 жыл бұрын
Thank you very much
@ga0j904
@ga0j904 2 жыл бұрын
thank you
@gimonfu2158
@gimonfu2158 3 жыл бұрын
GOOD VIDEO SIR THANK YOU SIR
@eden6708
@eden6708 3 жыл бұрын
thank u very helpful
@Fishingish
@Fishingish 2 жыл бұрын
how do u change the font size
@consig1iere294
@consig1iere294 3 жыл бұрын
@13:34 How is it possible that you are calling the function "add" before defining it? I know you defined it after calling it but I am learning Python and it won't let you do that. Is that a GDScript thing? Sorry new to programming and thank you for the excellent tutorial!
@LandChit
@LandChit 2 жыл бұрын
it probably scans every function first and then does the code in order i honestly dont know either its just a guess
@nishitnova5810
@nishitnova5810 2 жыл бұрын
Thanks for this tutorial! Btw i know a little bit of python so this is pretty ez for me lol
@pYMxolbo
@pYMxolbo Жыл бұрын
it is saying for the add thing function "add()" not found in base self what do i do i am using 4.03
@kenny_eats_many
@kenny_eats_many Жыл бұрын
I've learned *some* basics of python so does that count as a bonus?
@witheredraiders1252
@witheredraiders1252 2 жыл бұрын
im confused how did u add a + b but number + 10 was in another function?
@mr.shredder5430
@mr.shredder5430 3 ай бұрын
is func _ready() the main execution function
@Nocholas
@Nocholas 2 жыл бұрын
Do you type with dvorak layout?
@artscape4079
@artscape4079 Жыл бұрын
How do you save it?
@justinlong5892
@justinlong5892 3 жыл бұрын
How did you bump up the font size?
@notafrog5150
@notafrog5150 6 ай бұрын
Hey 3 years late but did you figure it out
@chomiyeons
@chomiyeons 3 жыл бұрын
Thanksss ! :)
@Fishingish
@Fishingish 2 жыл бұрын
how do i open a world node.....
@JakeWolven
@JakeWolven Жыл бұрын
Hey! I'm not seeing a world.tscn in my Scene folder...
@goodideas5659
@goodideas5659 2 жыл бұрын
Nice video. Very much like Javascript only simpler overall...in some cases slightly more complex but not often so I like GD script. You wont get a game breaking code just because you forgot to add an ";" at the end and the key arguments make a lot more sense like using "or" instead of "||" and using "and" instead of "&&" etc . Funny how if statements still need "==" double equals just like javascript which bit silly as you have "if" in front of it but ok... Only possible benefit to javascript I can see is that it will join or add numbers all by itself by interpretation...which is not always good as it doesn't do what you want sometimes and very annoying so yeah...
@nakulsharma3011
@nakulsharma3011 3 жыл бұрын
Is this playlist is completed :-) plz tell
@nurwaneduardo7831
@nurwaneduardo7831 2 жыл бұрын
Im use godot but how to zoon the script font. What button?
@saul8510
@saul8510 2 жыл бұрын
control + mouse wheel i think
@himhim2527
@himhim2527 3 жыл бұрын
Help godot wont print out anything, it worked and then didnt work the next day I dont know why, the thing in run isnt ticked
@syazwanjack36
@syazwanjack36 3 жыл бұрын
hi..i dont have any basic on programming so the question i ask may sound stupid, im sorry..i wanna ask why the on the func _ready you put an underscore but not on the other func?
@shecklesmack9563
@shecklesmack9563 3 жыл бұрын
Functions that start with "_" are built-in to Godot and don't need to be defined.
@ragnarthink9328
@ragnarthink9328 3 жыл бұрын
I am stuck at 10:22, there is no "World.tscn" or something else. pls help
@Bacon-tu7xn
@Bacon-tu7xn 3 жыл бұрын
have u got a main scene?
@1luckyjo
@1luckyjo 4 жыл бұрын
👏👏👏
@rafaellfranzbuluran5930
@rafaellfranzbuluran5930 Жыл бұрын
Can you make a part 2 pls
@telltalesanimation7472
@telltalesanimation7472 3 жыл бұрын
Woo, one thousandth like :D
@DizzyRL
@DizzyRL 2 жыл бұрын
Um how do I get the nodes and sprites?
@jimothy4
@jimothy4 4 ай бұрын
when you open it theres a panel that gives you 3d 2d or user interface choose 2d then press the plus button on top and add the sprite node to add texture use the inspector and use the texture thing and click open and choose whatever image. sorry for replying 2 years late
@DizzyRL
@DizzyRL 4 ай бұрын
@@jimothy4 only been 2 years lmao. Thanks for the answer though
@mikecl07
@mikecl07 4 жыл бұрын
How come my script editor isn't using autocompletion? How do I enable that? also when I type it automatically writes over existing text instead of the letters taking up new space can anyone help?
@CodeWithTom
@CodeWithTom 4 жыл бұрын
Hi Mike, sounds like you've accidentally hit the INS key on your keyboard.
@mikecl07
@mikecl07 4 жыл бұрын
@@CodeWithTom thanks so much I'm a total noob to programming and your videos have been indispensable to my learning
@smeskii1754
@smeskii1754 3 жыл бұрын
no matter what i do i get "unexpected token" most of the time. anyone know what this is caused by?
@ethanowens2030
@ethanowens2030 3 жыл бұрын
may have to start from scratch. likely a small detail you missed
@abdennacer6329
@abdennacer6329 3 жыл бұрын
please make more videos ,
@GMFrames
@GMFrames 3 жыл бұрын
i subed too and liked
@paulblart5358
@paulblart5358 9 ай бұрын
No event handler?
@Shadowthevampire
@Shadowthevampire 6 ай бұрын
You just said that variables could be a text like "hello world" but then you said strings could be used to make messages too What is the difference between a text variable and a text string please explain And when to use wich? Also when to use add to add numbers and when to use operatörs to add numbers you keep showing us 2 different ways to make the same thing continosly but you don't tills us the differens or when to use wich
Loops, Signals, get_node & call_deferred in GDScript
14:44
Code with Tom
Рет қаралды 18 М.
How to program in Godot - GDScript Tutorial
58:10
Brackeys
Рет қаралды 481 М.
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 16 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 37 МЛН
Understanding The Basics of GDScript - Godot Fundamentals
19:12
Game Dev Artisan
Рет қаралды 24 М.
How I Mastered GODOT In Only 5 DAYS!
7:03
Reece Geofroy
Рет қаралды 170 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 3,9 МЛН
How to Code (almost) Any Feature
9:48
DaFluffyPotato
Рет қаралды 666 М.
I made a game using Godot for the first time
7:35
shawcat
Рет қаралды 1,1 МЛН
6 Tips to Better Organize your Godot Projects
11:39
GDQuest
Рет қаралды 133 М.
C# is BETTER than GDScript but...
5:13
hamsterbyte
Рет қаралды 28 М.
Learn Godot by creating Pong
2:07:47
Clear Code
Рет қаралды 122 М.
Godot GDScript Tutorial For Beginners Crash Course
27:07
Byte Myke
Рет қаралды 12 М.
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН