GDScript (and Programming!) for Beginners in Godot 3.2

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มิ.ย. 2024
  • 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...

ความคิดเห็น • 218

  • @DeadahGas
    @DeadahGas 2 ปีที่แล้ว +53

    This may be 2 years later but this might be the best tutorial I’ve seen in my life

    • @Voidead_
      @Voidead_ ปีที่แล้ว +2

      Respect

    • @M_S_G.
      @M_S_G. ปีที่แล้ว +4

      Its always the oldest videos with the best tutorials

    • @tpbanimations
      @tpbanimations 11 หลายเดือนก่อน +1

      What game your working on?

    • @DeadahGas
      @DeadahGas 11 หลายเดือนก่อน +2

      @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 10 หลายเดือนก่อน +1

      @@DeadahGasplease don’t give up. Get another computer the first chance you get and continue on with your project in your spare time.

  • @mistorsmiles6568
    @mistorsmiles6568 4 ปีที่แล้ว +106

    I scoured the face of youtube for a couple days, and this tutorial helped me the most! thanks boi

    • @CodeWithTom
      @CodeWithTom  4 ปีที่แล้ว +7

      You're very welcome!

    • @synthblade
      @synthblade 3 ปีที่แล้ว +6

      Very descriptive and articulate. Definitely going to sub and watch more.

    • @CodeWithTom
      @CodeWithTom  3 ปีที่แล้ว +4

      @@synthblade thanks I appreciate it

    • @gimonfu2158
      @gimonfu2158 3 ปีที่แล้ว +2

      @code with tom I too the same

    • @colinperry654
      @colinperry654 3 ปีที่แล้ว +3

      same...

  • @KILLERMANGO-mi1cx
    @KILLERMANGO-mi1cx 3 ปีที่แล้ว +31

    In 20 Minutes U took A person thet Literally knows nothing about Coding to a pretty good level thank you so match

  • @chaunceya648
    @chaunceya648 4 ปีที่แล้ว +98

    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 ปีที่แล้ว +16

      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.

  • @MortissCoffin
    @MortissCoffin ปีที่แล้ว +1

    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!

  • @mrweevilcom
    @mrweevilcom 3 ปีที่แล้ว +21

    Man, you should make more videos like this gradually complicating the topic. With your ability to explain things you should have way more subscribers.

  • @captainkawaii666
    @captainkawaii666 ปีที่แล้ว

    I learned way more from this tutorial than I have anywhere else, this is really useful!

  • @chriscorbett666
    @chriscorbett666 3 ปีที่แล้ว +4

    Hi Tom. You are an excellent teacher. Keep going with tutorials, you are a cut above most on youtube. Cheers!

  • @knightgamer1533
    @knightgamer1533 4 ปีที่แล้ว +17

    Thanks for the video please don't stop here please make a complete guide

  • @FlynnFromTaiga
    @FlynnFromTaiga 2 ปีที่แล้ว +1

    I like how you describe new concepts. Very good video, thank you for your work.

  • @CreativeSteve69
    @CreativeSteve69 4 ปีที่แล้ว +27

    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 ปีที่แล้ว +7

      You're very welcome Stevie!

  • @Jimmotimmolime
    @Jimmotimmolime 3 ปีที่แล้ว +5

    Straight up the best intro to code video I've seen! Nice work Tom!

    • @jimothy4
      @jimothy4 3 หลายเดือนก่อน

      yuum

  • @jimothy4
    @jimothy4 3 หลายเดือนก่อน

    bro i tried finding tutorials for so long and i found this one and its so good 👍🏼

  • @Ostnizdasht206
    @Ostnizdasht206 3 หลายเดือนก่อน

    Short and easy to understand. Great tutorial.

  • @Agent-mk1rh
    @Agent-mk1rh 3 ปีที่แล้ว

    Thanks. I needed really basic information and this was the only video I found that had it.

  • @ThePurpleShadow123
    @ThePurpleShadow123 2 หลายเดือนก่อน

    I am going to say this in the nicest way possible. YOU ARE PRONOUNCING IT WROOOOOOOOOOONG!!!!!!!!!!!!!

  • @zeusexmachina3991
    @zeusexmachina3991 2 ปีที่แล้ว +1

    I know very basics of C++ (creating methods, classes, functions, constructions etc.) and this helps me a lot when learning another language.

  • @stephenweishaar9058
    @stephenweishaar9058 4 ปีที่แล้ว +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 :)

  • @danobra
    @danobra 3 ปีที่แล้ว

    I can't wait for the next video!

  • @Pygorable
    @Pygorable 3 ปีที่แล้ว +4

    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.

  • @geoToast
    @geoToast 5 หลายเดือนก่อน

    Thanks you for this video, it s the best tutorial on YT I have seen :D

  • @user-zl7tq9tp7x
    @user-zl7tq9tp7x 3 ปีที่แล้ว

    Nicely done. Thanks!

  • @EasyBit_Ez
    @EasyBit_Ez 4 หลายเดือนก่อน

    Awesome tutorial, I stopped watching a different tutorial just to watch yours!

  • @thomaseubank1503
    @thomaseubank1503 3 ปีที่แล้ว +4

    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.

  • @christophermyers6372
    @christophermyers6372 3 ปีที่แล้ว +1

    Thank you, this video was very helpful.

  • @ot5559
    @ot5559 3 ปีที่แล้ว

    Please make more. You explain things well

  • @arnaudullens1406
    @arnaudullens1406 ปีที่แล้ว

    This is a really good tutorial. Unfortunatly, you don’t go deeper. But you give all the keys to move on !

  • @vatan2578
    @vatan2578 4 ปีที่แล้ว +1

    Thanks much it's very good. Please continue the trainings.

  • @genxindia1154
    @genxindia1154 3 ปีที่แล้ว

    Thats some awsome work bro, thaks a lot.

  • @artvandelay8830
    @artvandelay8830 3 ปีที่แล้ว

    Really helpful, thanks a lot!

  • @mateusblock1590
    @mateusblock1590 ปีที่แล้ว

    Great video. Learned a lot from it😁👍

  • @samthesupreme5752
    @samthesupreme5752 2 ปีที่แล้ว

    AMAZING VIDEO!! THANK YOU

  • @danielleberry-massey7662
    @danielleberry-massey7662 3 ปีที่แล้ว

    Thanks so much for this!

  • @Loys-vo7cz
    @Loys-vo7cz ปีที่แล้ว

    You are dope bro! Damn , thank you so much, subbed

  • @praveengupta8938
    @praveengupta8938 7 หลายเดือนก่อน

    Thankyou sir best tutorial ever?😊❤

  • @kizz06
    @kizz06 3 ปีที่แล้ว

    Very helpful, subscribed!

  • @mrw2202
    @mrw2202 ปีที่แล้ว

    This was amazing.

  • @adityasamudre2291
    @adityasamudre2291 2 ปีที่แล้ว

    thank you !! you teach really nice.

  • @bog_champ2172
    @bog_champ2172 3 ปีที่แล้ว

    your my favorite godot youtuber

  • @omtiwari5303
    @omtiwari5303 3 ปีที่แล้ว

    Sir I am new to programming I am from class 8th You are teaching very good Thankyou for these videos

  • @TheNon-DigArtist
    @TheNon-DigArtist 4 ปีที่แล้ว +2

    Great vid tom, thanks! :-)

  • @syedrizvi6408
    @syedrizvi6408 4 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

      @@frankoesavage8314 Thanks a lot
      What method would you like so that you can see my progress

    • @frankoesavage8314
      @frankoesavage8314 4 ปีที่แล้ว +1

      @@syedrizvi6408 r u combining the codes?

    • @syedrizvi6408
      @syedrizvi6408 4 ปีที่แล้ว +1

      @@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.

  • @anujkajaniaindiangamer9529
    @anujkajaniaindiangamer9529 3 ปีที่แล้ว +2

    Thank you very * 100 much bro

  • @cherryblossoms5970
    @cherryblossoms5970 4 หลายเดือนก่อน +1

    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.

  • @mrorange159
    @mrorange159 3 ปีที่แล้ว

    Thanks for this

  • @biomech101
    @biomech101 4 ปีที่แล้ว +8

    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 ปีที่แล้ว +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.

  • @rhevoramirez7969
    @rhevoramirez7969 3 ปีที่แล้ว +5

    Why didn't you show how you created 'player' on your scene? Whatkind of node is 'player'? I'm new to godot.

  • @karyrus6384
    @karyrus6384 3 ปีที่แล้ว

    Thank you man

  • @radityaz5424
    @radityaz5424 3 ปีที่แล้ว

    Thank you very much

  • @freddysingbot7400
    @freddysingbot7400 ปีที่แล้ว

    you gave me hope that I could be able to code afterall

  • @GMFrames
    @GMFrames 3 ปีที่แล้ว

    thank so much!

  • @eden6708
    @eden6708 3 ปีที่แล้ว

    thank u very helpful

  • @templetherapy
    @templetherapy 4 ปีที่แล้ว

    Thanks much it's very good🤯

  • @sujeewa8067
    @sujeewa8067 4 ปีที่แล้ว +1

    Thanks a lot pal!

  • @ga0j904
    @ga0j904 2 ปีที่แล้ว

    thank you

  • @shorty4224
    @shorty4224 3 ปีที่แล้ว

    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?

  • @gimonfu2158
    @gimonfu2158 3 ปีที่แล้ว

    GOOD VIDEO SIR THANK YOU SIR

  • @thomasparker7305
    @thomasparker7305 4 ปีที่แล้ว +6

    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 ปีที่แล้ว +1

      Hi Thomas, thanks for the comment. Yes I definitely still plan on covering that topic soon.

  • @chomiyeons
    @chomiyeons 3 ปีที่แล้ว

    Thanksss ! :)

  • @ruslanmakarov1509
    @ruslanmakarov1509 2 ปีที่แล้ว +1

    Perhaps explain how 'a' and 'b' work in function lines? Gotta break down every part

  • @nishitnova5810
    @nishitnova5810 2 ปีที่แล้ว

    Thanks for this tutorial!
    Btw i know a little bit of python so this is pretty ez for me lol

  • @jozef18591
    @jozef18591 2 ปีที่แล้ว

    nice tut :P

  • @cappedminer369
    @cappedminer369 ปีที่แล้ว +2

    10:02 how do I create a player ?

  • @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 :)

  • @kini6016
    @kini6016 3 ปีที่แล้ว +2

    How did you get the world and player nodes

  • @yourkodi3945
    @yourkodi3945 2 ปีที่แล้ว +1

    2:45 bump up the font size, how did you this pls?

  • @darkestb3rry
    @darkestb3rry 4 ปีที่แล้ว +2

    Great video! Whens the next one coming?

    • @CodeWithTom
      @CodeWithTom  4 ปีที่แล้ว +1

      Thanks Phoenix, I think the next one will be within the next few weeks.

  • @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

  • @yoinkling
    @yoinkling ปีที่แล้ว +3

    For some reason there's repeatable glitches in the audio for my headphones.

  • @roaarabie2400
    @roaarabie2400 ปีที่แล้ว

    it's a good totourial
    can you make a play list that you make in it a visual scripting language or what???

  • @wesselvankoeverden9842
    @wesselvankoeverden9842 3 ปีที่แล้ว +2

    how did you start with a pkayer sprite i started with nothing

  • @nacidi5353
    @nacidi5353 3 ปีที่แล้ว +1

    I am late, but will it be easier to understand gdscript with Lua experience?

  • @1luckyjo
    @1luckyjo 4 ปีที่แล้ว +2

    👏👏👏

  • @kenny_eats_many
    @kenny_eats_many ปีที่แล้ว

    I've learned *some* basics of python so does that count as a bonus?

  • @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

  • @Fishingish
    @Fishingish ปีที่แล้ว +1

    how do u change the font size

  • @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...

  • @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

  • @mr.shredder5430
    @mr.shredder5430 2 หลายเดือนก่อน

    is func _ready() the main execution function

  • @GMFrames
    @GMFrames 3 ปีที่แล้ว

    i subed too and liked

  • @cole1
    @cole1 3 ปีที่แล้ว +1

    13:02 How did the parameters A and B get associated with the var "number" and the 10 in the add function?

    • @justaboutanything9378
      @justaboutanything9378 2 ปีที่แล้ว +1

      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

  • @Nocholas
    @Nocholas 2 ปีที่แล้ว

    Do you type with dvorak layout?

  • @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 ปีที่แล้ว +1

      it probably scans every function first and then does the code in order
      i honestly dont know either its just a guess

  • @MrQnter
    @MrQnter 3 ปีที่แล้ว

    Very good video. Too bad the only one about GDScript.

  • @witheredraiders1252
    @witheredraiders1252 2 ปีที่แล้ว

    im confused how did u add a + b but number + 10 was in another function?

  • @artscape4079
    @artscape4079 ปีที่แล้ว +1

    How do you save it?

  • @JakeWolven
    @JakeWolven ปีที่แล้ว

    Hey! I'm not seeing a world.tscn in my Scene folder...

  • @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.

  • @justinlong5892
    @justinlong5892 3 ปีที่แล้ว +3

    How did you bump up the font size?

    • @notafrog5150
      @notafrog5150 5 หลายเดือนก่อน

      Hey 3 years late but did you figure it out

  • @nakulsharma3011
    @nakulsharma3011 2 ปีที่แล้ว

    Is this playlist is completed :-) plz tell

  • @Fishingish
    @Fishingish ปีที่แล้ว +1

    how do i open a world node.....

  • @himhim2527
    @himhim2527 2 ปีที่แล้ว

    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

  • @telltalesanimation7472
    @telltalesanimation7472 3 ปีที่แล้ว

    Woo, one thousandth like :D

  • @abdennacer6329
    @abdennacer6329 3 ปีที่แล้ว

    please make more videos ,

  • @DizzyRL
    @DizzyRL 2 ปีที่แล้ว +1

    Um how do I get the nodes and sprites?

    • @jimothy4
      @jimothy4 3 หลายเดือนก่อน

      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 3 หลายเดือนก่อน

      @@jimothy4 only been 2 years lmao. Thanks for the answer though

  • @CunningBard
    @CunningBard 3 ปีที่แล้ว +2

    Thank God I learned Python first rather than c#

  • @nurwaneduardo7831
    @nurwaneduardo7831 2 ปีที่แล้ว +1

    Im use godot but how to zoon the script font. What button?

    • @saul8510
      @saul8510 2 ปีที่แล้ว

      control + mouse wheel i think

  • @SuperSteve180
    @SuperSteve180 2 ปีที่แล้ว +3

    I'm awesome!

  • @Shadowthevampire
    @Shadowthevampire 5 หลายเดือนก่อน +1

    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

  • @frenlyneybur7544
    @frenlyneybur7544 3 ปีที่แล้ว

    I love you