Godot 4 3D Platformer Lesson #4: Coding 101 (Part 1)

In this Godot 4 Lesson I begin a 2-part 'intro to coding' lesson for absolute beginners to programming (or gd script) in Godot 4. In this lesson I cover topics: Language Syntax, Variables, Data Types, and Constants, Operators, Comments, and Calling Functions / Methods. By the end of this lesson we'll also add a Sprite3D (a floating image) into our game level, and code it to spin during gameplay.
Thanks for watching! Here are the video chapter timecode links:
- 0:00 - Video Intro
- 0:07 - Recap (of the last lesson)
- 0:51 - Outline (of this lesson)
- 1:19 - Language Syntax
- 5:55 - Variables, Data Types, & Constants
- 15:03 - Operators
- 16:30 - Comments
- 19:43 - Calling Functions / Methods
- 27:32 - Recap / Summary
- 27:47 - Wrap-Up & Outro
Don't forget to LIKE & SUBSCRIBE! 🥰 👍
*note: In this lesson I used Godot 4.1
#godotengine #gamedev
Play and Download the Finished 3D Platformer Game Online Now!: borncg.itch.io/3d-platformer-... (use: Chrome/Edge/Firefox to play the web game version)
*****************
DONATE to support my channel via PayPal: goo.gl/ThkwyG
********************************
LIKE and FOLLOW me on:
FACEBOOK: / borncg
INSTAGRAM: / born.cg
X / TWITTER: / borncg
Reddit: / borncg
**********************************
Visit this Godot 4 Beginners: 3D Platformer Course playlist!:
• Godot 4 Beginners: Lea...
Visit my Let's Learn Blender! Tutorial Series playlist:
• Let's Learn Blender!
****************
Nicolas from the band 'The Lazy Saviours' created my Intro Jingle!
****************

Пікірлер: 59

  • @metacob
    @metacob5 ай бұрын

    You have a very engaging way of speaking. I was 8 minutes into learning about variables when I remembered that I've been programming for over 20 years.

  • @HurricaneSA

    @HurricaneSA

    3 ай бұрын

    Indeed. I got excited about making a cube named Steve move until I realized I've done it a 100 times before. Although, I admit, they were never named Steve or anything else before. Does "Player" count as a name? I wish my teachers in school were this engaging.

  • @PacdemonStudios1

    @PacdemonStudios1

    3 ай бұрын

    It's actually kind of crazy, I sat through the entire last video and it was all for stuff I already knew how to do, I didn't even realize it until it finished. It's gonna be a slow burn but it makes me excited for when he starts covering complex stuff after laying the foundation

  • @lawdpuliix

    @lawdpuliix

    27 күн бұрын

    i first came here for Blender Tutorials, now i have been making mini game projects in Godot for 2 years🤣

  • @VirtualHimself
    @VirtualHimself7 ай бұрын

    LESSGOO!! I just opened Godot to learn new stuff and you uploaded!

  • @rremnar
    @rremnar7 ай бұрын

    Unless your variable changes, it is better to use functions in your declaration than in the _process function. That way the computer doesn't have to calculate the function over and over. const SPEED = deg_to_rad(2) In some coding languages, you may not be allowed to use functions in your constant declarations; therefore, you will need to declare it as a variable. But that is not an issue in GDScript. I do wonder, what difference does it make wether your variable is a constant or not? What if I had a 1000 variables and some of them I had no intention on changing their value. Does it really make any difference? Sure I can fathom it helps to prevent from making a mistake; but I wonder if there is something else going on under the hood that requires this? Maybe in the old days of programming.

  • @user-xz8lm4rd6x
    @user-xz8lm4rd6x13 күн бұрын

    Dude knows how to teach GameDev, scripting and modeling. Awesome.

  • @StarzyKK
    @StarzyKK7 ай бұрын

    These tutorials are great! This is my first step into actually making a game and your tutorials are mondo helpful. Coding looks daunting but every dev has to learn it eventually right? Looking forward to the next ep!

  • @elliottfraziertube
    @elliottfraziertube7 ай бұрын

    Great stuff! Looking forward to the next lesson!

  • @SILVERF0X13
    @SILVERF0X13Ай бұрын

    I'm a full stack developer for my job, and while I knew pretty much everything in this particular episode, I will say that it was enjoyable to see how you explain the fundamentals for people who may not know things like variables/constants/etc. Enjoying the tutorials so far.

  • @BornCG

    @BornCG

    Ай бұрын

    Thanks! 🙂

  • @Harbiter
    @Harbiter7 ай бұрын

    Love your tutorials! You really explain things well and make it easy to understand.

  • @chickensoap
    @chickensoap3 ай бұрын

    These tutorials are so awesome. Thank you so much for making it free. I can't find other 3D Godot tutorials like this. I'll make sure to share this.

  • @hunterzwer4095
    @hunterzwer40957 ай бұрын

    You are awesome please make your videos more often we really need it!

  • @christophilous4831
    @christophilous48317 ай бұрын

    thank you for the great tutorials

  • @Diecy-pn4yy
    @Diecy-pn4yy3 ай бұрын

    this is literally amazing. keep going we LOVE your vids(i eat them up)

  • @davidmanzato1987
    @davidmanzato19875 ай бұрын

    Hello, I'd like to thank you for your tutorials. They're simply excellent, very educational, and what's more, we can feel your good humor behind the microphone, a faultless performance, it's a no-brainer ! 👏

  • @BornCG

    @BornCG

    5 ай бұрын

    ☺️

  • @barborahalova3514
    @barborahalova35147 ай бұрын

    These tutorials are awesome!

  • @chiewcck
    @chiewcck2 ай бұрын

    Awesome tutorials !

  • @MijmerMopper
    @MijmerMopper7 ай бұрын

    I think Godot coding is going to be a bit more intuitive to me then what I tried previously (unity). Loving these vids.

  • @EggsToMe
    @EggsToMe7 ай бұрын

    Just wanted to say, you are the best :D

  • @xmesaj2
    @xmesaj27 ай бұрын

    wow nice drop, godot has come long way

  • @Zero0189
    @Zero01894 ай бұрын

    If GD script is Deleting code when you type before a character, try hitting the insert key (its above the delete key)

  • @jasonwilliams8730
    @jasonwilliams87307 ай бұрын

    Thank you

  • @user-bi4ye3vt6q
    @user-bi4ye3vt6q3 ай бұрын

    Great tutorial

  • @LeonderGrunder
    @LeonderGrunder16 күн бұрын

    19:15 aaaaahmhmmhmhmhm. Definietly done in all my code...

  • @gigantetelles6409
    @gigantetelles64093 күн бұрын

    Muito bom cara vc explica muito bem, o vídeo é de fácil compreensão até para quem fala outra língua

  • @HonsHon
    @HonsHonАй бұрын

    You can have spaces in your code. You do not have to have tabs. You just have to choose between the two per script (tabs or spaces). With spaces, you have to choose the amount of spaces that are expected per indent as well (2 spaces, 4 spaces, etc...). Edit: Great tutorial though! This is really helping my girlfriend out as she is jumping into the world of Godot!

  • @Yellowdev722
    @Yellowdev722Ай бұрын

    Love from 🇮🇳

  • @zedernt5338
    @zedernt53387 ай бұрын

    I ran your finished tutorial game .exe through a github decompiler for godot, so I could see how it worked earlier. It all makes sense except for the files level_1_environment.tres and world-blocks-v1.tres. How did you make those files? I can't figure out how to edit those files in either godot or blender. How many more videos until this tutorial series reaches the part where you made those? Thanks for these tutorials!

  • @florrymccarthy6746
    @florrymccarthy67463 ай бұрын

    coming from old school programming I find it hard to resist calling string variables Variable$ lol just the way I learned

  • @ainzooalgown119
    @ainzooalgown1193 ай бұрын

    I love how you explain, everything is very clear. I have a question, how did you lock your scene/level/project to 60 fps? When I run the same script you are using, my sprite spins much faster, likely because I'm on a 240hz display. Is there a way to change this?

  • @bigmoneybusiness34

    @bigmoneybusiness34

    2 ай бұрын

    i think you times it by delta

  • @killerz1o1

    @killerz1o1

    Ай бұрын

    Go into project settings, go to "Run" under "Application", turn on the "Advanced Settings" switch at the top right, then change the "Max FPS" setting to 60.

  • @ainzooalgown119

    @ainzooalgown119

    Ай бұрын

    @@killerz1o1 thanks

  • @ainzooalgown119

    @ainzooalgown119

    Ай бұрын

    @@bigmoneybusiness34 that might be it, thank you

  • @Yellowdev722
    @Yellowdev722Ай бұрын

    Believe me godot 4 is available on android and i am doing all these in android 🔥

  • @thehonkinggamer2827
    @thehonkinggamer28276 ай бұрын

    Will your part 2 video be next week?

  • @BornCG

    @BornCG

    6 ай бұрын

    It’s up now 😉

  • @hypermonk33y56
    @hypermonk33y563 ай бұрын

    i dont get how is it when i type in the same rotate on y axis with the same as the tutorial, mine spins faster than in the video. whats the difference? i didnt change anything or is that the default fps speed?

  • @Diecy-pn4yy

    @Diecy-pn4yy

    3 ай бұрын

    no as long as you have the delta in your function

  • @BinaryBolias
    @BinaryBolias7 ай бұрын

    I've successfully guessed the sort of thing that would be done within the Icon script as an alternative to printing a value every frame, though I myself happened to initially use "rotate(Vector3.UP, 5 * delta)" rather than "rotate_y(0.1)". Pi (accessible in GDScript with the "PI" constant) is one half a rotation in radians. Pi can be used to define rotations over time, and without using the "deg_to_rad" function, with (PI * delta) representing half a rotation per second. Not using delta, of course, causes the rotation to be dependent on framerate. "rotate_Y(0.1)" produces a rotation of 0.1 radians per frame, or, assuming 60 frames per second, (0.1 / (2 * PI) ) rotations per second, but which varies as the framerate does. Fixed to be framerate-independent, "rotate_y(0.1)" would be "rotate_y( (0.1 / 60) * delta)", with the literal "60" used representing the assumed framerate of the original. "deg_to_rad(x)" effectively divides "x" by 180 and then multiplies it by Pi. If you understand "PI" as representing half a rotation, then using it directly instead of "deg_to_rad()" can be quite intuitive.

  • @murdrer982
    @murdrer9827 ай бұрын

    Hi sir you are taking alot of time

  • @VirtualHimself

    @VirtualHimself

    7 ай бұрын

    a tutorial every one week

  • @Wailingllama

    @Wailingllama

    7 ай бұрын

    Let's not rush them, they need time to edit these and id prefer we wait and get them instead of not at all

  • @BornCG

    @BornCG

    7 ай бұрын

    These tutorials take hours and hours to make. Patience, Padawan.

  • @MijmerMopper

    @MijmerMopper

    7 ай бұрын

    I'd ask for a refund

  • @rremnar

    @rremnar

    7 ай бұрын

    I am getting impatient as well; but I guess he has to do the voice recording for these. And since he is busy, he doesn't have time to dish em out frequently as we'd like.

  • @Hatifnatek32
    @Hatifnatek327 ай бұрын

    Next the character?

  • @BornCG

    @BornCG

    7 ай бұрын

    Adding the Robot character comes a ways into the course. Next up is the second half of 'Coding 101'.

  • @thenoobarafinbg8378
    @thenoobarafinbg83787 ай бұрын

    PLS UPLOAD ALL PARTS

  • @BornCG

    @BornCG

    7 ай бұрын

    If only these didn’t take time to edit! 🙃🤷‍♂️

  • @thenoobarafinbg8378

    @thenoobarafinbg8378

    7 ай бұрын

    @@BornCG it takes 1week to edit?

  • @jeffblack5527
    @jeffblack55276 ай бұрын

    😂 'Promo sm'

  • @worldvador7046
    @worldvador70463 ай бұрын

    I don't understand this tutorial. How is there not a single person that doesn't get a specific step?

  • @Diecy-pn4yy

    @Diecy-pn4yy

    3 ай бұрын

    coding is hard to wrap your head around it at first is this your first time coding?

  • @HonsHon

    @HonsHon

    Ай бұрын

    Learning programming is sort of like getting up and over a steep hill. You are bound to hit some hiccups when you first start, but there is always a way to get up over those humps.