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

In this Godot 4 Lesson I finish off this 2-part 'intro to coding' lesson for absolute beginners to programming (or gd script) in Godot 4. In this lesson I cover topics: Conditional If Statements, Else, and Boolean Expressions, Boolean variables, Writing Functions (that have parameters and accept arguments, and return data), and Objects, Inheritance, and Godot's official GDScript documentation. By the end of this lesson we'll also program our game's Sprite3D to rotate in either direction by pressing the left and right arrow keys on the keyboard.
Thanks for watching! Here are the video chapter timecode links:
- 0:00 - Video Intro
- 0:07 - Recap & Overview
- 0:22 - If Statements, Else, and Boolean Expressions
- 17:16 - Writing Functions
- 28:20 - Objects, Inheritance, & Documentation
- 36:26 - 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!
****************

Пікірлер: 58

  • @NobleAbsinthe
    @NobleAbsinthe7 ай бұрын

    These videos aren't coming out fast enough boss! I love your content!

  • @christian-schubert
    @christian-schubert12 күн бұрын

    They say that everything used to be better in the old days. Well, in the old days, you would have had to spend a considerable amount of money for a course this thought out and well crafted. Also, you can think of the PARAMETERS of a function as the placeholders (in this case 'x' and 'y') whereas the ARGUMENTS are the values you actually pass into it (in this case '5' and '6')

  • @artemail6744
    @artemail67444 ай бұрын

    just wanna say, this is my third attempt to learn to code from a youtube tutorial, and yours is the one im sticking with. You explain everything really well and I appreciate how you're giving us the tools to figure things out on our own in the future. Thanks a lot friend

  • @SirPibby
    @SirPibby4 ай бұрын

    Just wanna say your explanation of Boolean values is excellent, I've tried learning how to code multiple times, and the explanation for Boolean values always confused me to the point where shortly after I would give up. You have managed to actually make me understand how they work, makes me want to start learning python and other languages again, thank you BornCG! edit: fixing spelling

  • @edwardhilgendorf8458
    @edwardhilgendorf84586 ай бұрын

    Thanks!

  • @BornCG

    @BornCG

    6 ай бұрын

    😍

  • @ultramegakingdom6798
    @ultramegakingdom67986 ай бұрын

    Can't wait for the next episode to come out. You've helped me from having no idea what's going on with godot to understanding all the basic concept to set me up for future project where I can make more original code! Although I have experience with programming, I love all these step-by-step explanations, which can help people with no experience at all help jumpstart their game dev journey! Keep up the good work! Looking forward to the next episode and being able to play the finished product!

  • @bodegamer1122
    @bodegamer112216 күн бұрын

    thank you so much for the tut. I think im done today tho because ive watched five of the tuts and it took up like halve my day and im tired but these are amazing! thank you!

  • @SootytheMagicalBear
    @SootytheMagicalBear2 ай бұрын

    Excellent video, I've been stuck for the last 3 or 4 weeks and watching this, going over the basics again is very beneficial, and the way you talk, and explain things I find easy to follow and understand. You are a great teacher from what I have seen so far.

  • @clovisimerovingian6728
    @clovisimerovingian67287 ай бұрын

    Thank you so much for these lessons! For someone who never made a 3D game, they're really helpful so far. Can't wait for the next video! Minor tip for 35:29: You can close the documents by right clicking and selecting 'Close Docs'

  • @ashok47ksaharan47
    @ashok47ksaharan476 ай бұрын

    waiting for next. thankyou for these 🥰 i learned blender from you now godot again thankyou sir 🙏🙏🙌

  • @eveningdreamermusic
    @eveningdreamermusic6 ай бұрын

    excellent video & series. looking forward to the next one!

  • @AngusJMcGregor
    @AngusJMcGregor7 ай бұрын

    these can't come out fast enough! love the stuff. any chance you'd allow someone to assist you in editing to get them out faster?

  • @BornCG

    @BornCG

    7 ай бұрын

    Thanks for your comment and for the offer and sentiment! 😊 I'm going to continue editing as quickly as life allows (there a LOT more editing in these than most people think!).

  • @AngusJMcGregor

    @AngusJMcGregor

    7 ай бұрын

    oh, naturally. most good editing is editing you don't notice. wonderful stuff! looking forward to the rest :)@@BornCG

  • @WiLDbEAsTGameSHere
    @WiLDbEAsTGameSHere7 ай бұрын

    This helped me so much , thankyou for the content i will be applying it to start creating a game right away

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

    Amazing tutorial! Thank you very much

  • @javi1988
    @javi19887 ай бұрын

    Excelent tutorial. These videos are really useful.

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

    This makes SOOO much sense!!!

  • @afirstlovelost
    @afirstlovelost5 ай бұрын

    These videos have been so helpful. I will have to watch part 1 & 2 a few times I'm sure. I have this mental block when it comes to understanding all this code. I guess I just need to keep practicing.

  • @sh1ne_off
    @sh1ne_off6 ай бұрын

    Great videos, waiting for more)

  • @LtsVapor
    @LtsVapor3 ай бұрын

    great video thank you for making it

  • @joshbonney9624
    @joshbonney96246 ай бұрын

    How many lessons do you expect in this series? Great content.

  • @BornCG

    @BornCG

    6 ай бұрын

    Thanks! 26 in total, which have already been recorded, just in my editing pipeline.

  • @Gargoyle33
    @Gargoyle336 ай бұрын

    New sub from me, Cant wait for more videos in this series!

  • @pyrokataki6229
    @pyrokataki62296 ай бұрын

    it make sense now 😊😊😊😊

  • @crowxx9501
    @crowxx95016 ай бұрын

    Please we need the rest of 26 episodes...we love ur content

  • @sid98geek
    @sid98geek6 ай бұрын

    Please pump out part 6 soon!

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

    You can "wheel click" to close document pages fast.

  • @Backsniper
    @Backsniper4 ай бұрын

    Thanks man! Apparently putting that code to make something spin left and right inside the character destroys movement though!

  • @kc3dprints
    @kc3dprints4 ай бұрын

    I've used unity for a while, now they've added that 20 cent per install, I am learning godot. And omg do you teach well

  • @ctrlzme.6448
    @ctrlzme.64482 ай бұрын

    my brain is fried 😭😭😭😭😭😭

  • @RoboGuy2K
    @RoboGuy2K7 ай бұрын

    I know it's just a small demonstrative example but I noticed that when running the script with the If Else statement, if you hold both the left and right key at the same time it makes the icon continuously rotate. I have to wonder how you could prevent that behavior while keeping the code more efficient, as it didn't behave that way with the two separate if statements.

  • @LTL_king
    @LTL_king6 ай бұрын

    Where's the rest of it. I thought you were going to go through the full game. You should do more of this. I was watching your godot 3 and got stuck when you used kinetic body. I'll give it a try but I would really love to see some more complete builds. Although to speed up the game making I'd suggest a little less explanation and just reference these videos if people are new to coding and want a more in depth explanation. Also instead of explaining 2 ways of doing something just use search feature. If they want the other way point to here. I've been wanting to learn coding for a long time but as an experienced person. We learn by "How does this apply" You explained it very well.

  • @BornCG

    @BornCG

    6 ай бұрын

    There's a very good reason these have slowed down over the last month, please check my profile community page 🙃👶

  • @LTL_king

    @LTL_king

    6 ай бұрын

    @BornCG Ok when you actually get some sleep. Although keep the tips in mind when you start again. It will help things go faster. You already explain very well and talk slow enough to keep a good pace as it is. No harm in skipping a thing here or there.

  • @princeraj_pr
    @princeraj_pr6 ай бұрын

    How long does it take you to upload all these videos(26)?

  • @tamildubbedmoviesnew952
    @tamildubbedmoviesnew9527 ай бұрын

    I love ur awesome content ❤.. But pls upload fast sir 😢 Ur videos are too good and soooo exciting...

  • @samorwhatever4485
    @samorwhatever44852 ай бұрын

    I have all the exact same code but mine doesn’t work. Calling functions in other functions is causing problems and idk why

  • @samorwhatever4485

    @samorwhatever4485

    2 ай бұрын

    FIXED for some reason the script wasn’t attached to the sprite so I was just making a script attached to nothing. Not sure how it happened because it was working until I started adding my own functions anyways all good

  • @gofudgeyourselves9024
    @gofudgeyourselves90247 ай бұрын

    Missed you last week, my lord

  • @shaniz_
    @shaniz_6 ай бұрын

    Why it is the last lesson??? We didn't achieved a result

  • @BornCG

    @BornCG

    6 ай бұрын

    Lessons are going to continue soon. 26 in all

  • @user-os4gw9eq6c
    @user-os4gw9eq6c7 ай бұрын

    yayayayayayay! iam first!!!!111 thank you pls upload all parts fast iam noob

  • @BornCG

    @BornCG

    7 ай бұрын

    I'll try!

  • @DigiDrifts
    @DigiDrifts29 күн бұрын

    2:03 i really tried to put the code into gdscript💀

  • @ArconicTower
    @ArconicTower12 күн бұрын

    14:25

  • @Zacharypriniski
    @Zacharypriniski7 ай бұрын

    hey

  • @futuregames2294
    @futuregames22947 ай бұрын

    i need talk to you.

  • @princeraj_pr
    @princeraj_pr6 ай бұрын

    Instead of Godot, I have to learn Unreal engine because the Godot series may take a long time to complete.

  • @gofudgeyourselves9024
    @gofudgeyourselves90247 ай бұрын

    Hey colin, would love you thoughts on RIVE. I think it could disrupt the game dev industry as it provides solid animations using state machine and extremely small in size as well. Some really cool people like the creator of lottie has just joined rive

  • @doinkes7764
    @doinkes77647 ай бұрын

    Классные уроки. к сожалению я уже изучал другие языки программирования и ваши объяснения бывают для меня в тягость, узнавать знакомый материал снова и снова, но я продолжаю смотреть, чтобы не упустить ничего нового. Я действительно хочу освоить 3d в godot, посмотреть как вы будете создавать персонажей в blender и имортировать в игру. Сколько планируется уроков? Когда вы их выпустите полностью?

  • @rafamichalski6150

    @rafamichalski6150

    7 ай бұрын

    Для меня два видео об обучении программированию тоже слишком много

  • @mrdixioner

    @mrdixioner

    7 ай бұрын

    Эти видео для самых новичков, никто не заставляет их смотреть. Я, к примеру, просто перематывал некоторые части видео, но в основном мне было интересно, хоть я и знал большинство того, что было сказано.

  • @user-rx6eu6fz7w

    @user-rx6eu6fz7w

    7 ай бұрын

    @@mrdixioner я тот самый новичок, нормальных (которые подробно объясняют, а не тупо берут определенную ноду, потому что так надо и т.д.) гайдов по современной версии Godot в 3D не нашел, а эта серия видео выходит уж слишком редко для того количества информации, что дается в уроках

  • @samuraihoedown4761
    @samuraihoedown47616 ай бұрын

    Thanks!

  • @BornCG

    @BornCG

    6 ай бұрын

    😍