GDScript (and Programming!) for Beginners in Godot 3.2

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 219

  • @DeadahGas
    @DeadahGas 2 года назад +55

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

    • @Voidead_
      @Voidead_ 2 года назад +2

      Respect

    • @M_S_G.
      @M_S_G. Год назад +5

      Its always the oldest videos with the best tutorials

    • @tpbanimations
      @tpbanimations Год назад +1

      What game your working on?

    • @DeadahGas
      @DeadahGas Год назад +3

      @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 Год назад +2

      @@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 4 года назад +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 2 года назад

      Yes please, keep them coming. New sub.

  • @mistorsmiles6568
    @mistorsmiles6568 4 года назад +105

    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 4 года назад +6

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

    • @CodeWithTom
      @CodeWithTom  4 года назад +4

      @@synthblade thanks I appreciate it

    • @gimonfu2158
      @gimonfu2158 4 года назад +2

      @code with tom I too the same

    • @colinperry654
      @colinperry654 4 года назад +3

      same...

  • @mrweevilcom
    @mrweevilcom 3 года назад +20

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

  • @knightgamer1533
    @knightgamer1533 4 года назад +17

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

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

  • @zeusexmachina3991
    @zeusexmachina3991 3 года назад +1

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

  • @CreativeSteve69
    @CreativeSteve69 4 года назад +28

    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!

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

  • @EasyBit_Ez
    @EasyBit_Ez 9 месяцев назад

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

  • @Pygorable
    @Pygorable 4 года назад +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.

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

  • @cherryblossoms5970
    @cherryblossoms5970 9 месяцев назад +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.

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

  • @biomech101
    @biomech101 4 года назад +7

    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.

  • @thomaseubank1503
    @thomaseubank1503 4 года назад +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.

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

  • @jimothy4
    @jimothy4 8 месяцев назад

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

  • @FlynnFromTaiga
    @FlynnFromTaiga 3 года назад +1

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

  • @arnaudullens1406
    @arnaudullens1406 Год назад

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

  • @Ostnizdasht206
    @Ostnizdasht206 8 месяцев назад

    Short and easy to understand. Great tutorial.

  • @omtiwari5303
    @omtiwari5303 3 года назад

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

  • @MattheoGary
    @MattheoGary 7 месяцев назад

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

    • @CodeWithTom
      @CodeWithTom  Месяц назад

      Thanks for the advice!

    • @MattheoGary
      @MattheoGary Месяц назад

      @@CodeWithTom No problem, lol.

  • @cappedminer369
    @cappedminer369 Год назад +2

    10:02 how do I create a player ?

  • @wesselvankoeverden9842
    @wesselvankoeverden9842 3 года назад +2

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

  • @yourkodi3945
    @yourkodi3945 2 года назад +1

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

  • @geoToast
    @geoToast 9 месяцев назад

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

  • @yoinkling
    @yoinkling 2 года назад +3

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

  • @Agent-mk1rh
    @Agent-mk1rh 4 года назад

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

  • @vatan2578
    @vatan2578 4 года назад +1

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

  • @DizzyRL
    @DizzyRL 2 года назад +1

    Um how do I get the nodes and sprites?

    • @jimothy4
      @jimothy4 8 месяцев назад

      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 8 месяцев назад

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

  • @ruslanmakarov1509
    @ruslanmakarov1509 3 года назад +1

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

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

  • @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 года назад +1

    How did you get the world and player nodes

  • @justinlong5892
    @justinlong5892 4 года назад +3

    How did you bump up the font size?

    • @notafrog5150
      @notafrog5150 10 месяцев назад

      Hey 3 years late but did you figure it out

  • @ot5559
    @ot5559 4 года назад

    Please make more. You explain things well

  • @Fishingish
    @Fishingish 2 года назад +1

    how do u change the font size

  • @JakeWolven
    @JakeWolven Год назад

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

  • @bog_champ2172
    @bog_champ2172 3 года назад

    your my favorite godot youtuber

  • @Fishingish
    @Fishingish 2 года назад +1

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

  • @nacidi5353
    @nacidi5353 3 года назад +1

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

  • @CunningBard
    @CunningBard 3 года назад +2

    Thank God I learned Python first rather than c#

  • @ragnarthink9328
    @ragnarthink9328 3 года назад +1

    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?

  • @freddysingbot7400
    @freddysingbot7400 2 года назад

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

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

  • @praveengupta8938
    @praveengupta8938 Год назад

    Thankyou sir best tutorial ever?😊❤

  • @artscape4079
    @artscape4079 Год назад +1

    How do you save it?

  • @franciskahindi6769
    @franciskahindi6769 Год назад +1

    it didnt work when I tried

  • @mr.shredder5430
    @mr.shredder5430 7 месяцев назад

    is func _ready() the main execution function

  • @christophermyers6372
    @christophermyers6372 4 года назад +1

    Thank you, this video was very helpful.

  • @danobra
    @danobra 4 года назад

    I can't wait for the next video!

  • @nurwaneduardo7831
    @nurwaneduardo7831 3 года назад +1

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

    • @saul8510
      @saul8510 2 года назад

      control + mouse wheel i think

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

  • @Shadowthevampire
    @Shadowthevampire 10 месяцев назад +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

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

    • @ThatYapper
      @ThatYapper 3 года назад +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

  • @Detective_depther
    @Detective_depther Год назад

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

  • @Loys-vo7cz
    @Loys-vo7cz 2 года назад

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

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

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

  • @3044-l6y
    @3044-l6y 3 года назад

    Nicely done. Thanks!

  • @syazwanjack36
    @syazwanjack36 4 года назад

    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.

  • @nakulsharma3011
    @nakulsharma3011 3 года назад

    Is this playlist is completed :-) plz tell

  • @kevinsargent
    @kevinsargent 2 года назад +1

    Java uses else if, Ruby uses elsif, and apparently Godot uses elif. I'm sure I'll never mess this up...

    • @lolz6337
      @lolz6337 2 года назад

      Very similar to Python

  • @samthesupreme5752
    @samthesupreme5752 2 года назад

    AMAZING VIDEO!! THANK YOU

  • @roaarabie2400
    @roaarabie2400 2 года назад

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

  • @witheredraiders1252
    @witheredraiders1252 3 года назад

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

  • @Tronic_
    @Tronic_ 2 года назад +1

    Sounds like someone beating an old dusty rug in the background..

  • @diegomata1062
    @diegomata1062 4 года назад

    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

  • @Nocholas
    @Nocholas 3 года назад

    Do you type with dvorak layout?

  • @JK92007
    @JK92007 3 года назад

    how can we create a racing car game in Godot?

  • @consig1iere294
    @consig1iere294 4 года назад

    @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 3 года назад +1

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

  • @aricreation-me
    @aricreation-me 2 года назад

    thank you !! you teach really nice.

  • @TheExplorativeArtist
    @TheExplorativeArtist 4 года назад +2

    Great vid tom, thanks! :-)

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

  • @paulblart5358
    @paulblart5358 Год назад

    No event handler?

  • @genxindia1154
    @genxindia1154 4 года назад

    Thats some awsome work bro, thaks a lot.

  • @dpdwkbgf
    @dpdwkbgf Год назад

    Can you make a part 2 pls

  • @thebestcommenter22
    @thebestcommenter22 3 года назад +1

    Im just going to give up i cant do this

  • @danielleberry-massey7662
    @danielleberry-massey7662 4 года назад

    Thanks so much for this!

  • @nishitnova5810
    @nishitnova5810 2 года назад

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

  • @SissyAreil
    @SissyAreil Год назад

    This was amazing.

  • @MrQnter
    @MrQnter 4 года назад

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

  • @artvandelay8830
    @artvandelay8830 4 года назад

    Really helpful, thanks a lot!

  • @smeskii1754
    @smeskii1754 3 года назад +1

    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

  • @kizz06
    @kizz06 4 года назад

    Very helpful, subscribed!

  • @Shadowthevampire
    @Shadowthevampire 10 месяцев назад

    Okej you told us what an indent means but what does an indent inside another indent mean
    Like I do a indent to make something part of a function but then after I write something I make another indent what does that mean like this.
    Function
    An indent Something something
    Another indent something

  • @poornimachaubey3457
    @poornimachaubey3457 3 года назад

    It's almost like the language we speak everyday.

  • @sujeewa8067
    @sujeewa8067 4 года назад +1

    Thanks a lot pal!

  • @gimonfu2158
    @gimonfu2158 4 года назад

    I HAve a good idea on making a game can i get ur help sir

  • @abdennacer6329
    @abdennacer6329 4 года назад

    please make more videos ,

  • @saswotshrestha6472
    @saswotshrestha6472 4 года назад +2

    why is my if statement not working ?
    here is the code:
    extends Node
    func _start():
    statement(20)
    func statement(age):
    if age > 30:
    print("its greater you fool,you fool")
    else:
    print("you are cool")

  • @notPixielllllScale
    @notPixielllllScale 3 года назад

    instead of using that ("You are %d" % age) thing, you can just use ("You are ", age), way easier

  • @vickylance
    @vickylance 4 года назад +1

    Noo.. what happened to the FPS series

    • @CodeWithTom
      @CodeWithTom  4 года назад +3

      Don't worry it's not going anywhere, I have plenty more planned for that series.

    • @vickylance
      @vickylance 4 года назад

      @@CodeWithTom Awesome waiting for it :D

  • @karyrus6384
    @karyrus6384 3 года назад

    Thank you man

  • @radityaz5424
    @radityaz5424 4 года назад

    Thank you very much

  • @mrorange159
    @mrorange159 4 года назад

    Thanks for this