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
These videos aren't coming out fast enough boss! I love your content!
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')
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
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
Thanks!
@BornCG
6 ай бұрын
😍
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!
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!
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.
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'
waiting for next. thankyou for these 🥰 i learned blender from you now godot again thankyou sir 🙏🙏🙌
excellent video & series. looking forward to the next one!
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
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
7 ай бұрын
oh, naturally. most good editing is editing you don't notice. wonderful stuff! looking forward to the rest :)@@BornCG
This helped me so much , thankyou for the content i will be applying it to start creating a game right away
Amazing tutorial! Thank you very much
Excelent tutorial. These videos are really useful.
This makes SOOO much sense!!!
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.
Great videos, waiting for more)
great video thank you for making it
How many lessons do you expect in this series? Great content.
@BornCG
6 ай бұрын
Thanks! 26 in total, which have already been recorded, just in my editing pipeline.
New sub from me, Cant wait for more videos in this series!
it make sense now 😊😊😊😊
Please we need the rest of 26 episodes...we love ur content
Please pump out part 6 soon!
You can "wheel click" to close document pages fast.
Thanks man! Apparently putting that code to make something spin left and right inside the character destroys movement though!
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
my brain is fried 😭😭😭😭😭😭
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.
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
6 ай бұрын
There's a very good reason these have slowed down over the last month, please check my profile community page 🙃👶
@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.
How long does it take you to upload all these videos(26)?
I love ur awesome content ❤.. But pls upload fast sir 😢 Ur videos are too good and soooo exciting...
I have all the exact same code but mine doesn’t work. Calling functions in other functions is causing problems and idk why
@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
Missed you last week, my lord
Why it is the last lesson??? We didn't achieved a result
@BornCG
6 ай бұрын
Lessons are going to continue soon. 26 in all
yayayayayayay! iam first!!!!111 thank you pls upload all parts fast iam noob
@BornCG
7 ай бұрын
I'll try!
2:03 i really tried to put the code into gdscript💀
14:25
hey
i need talk to you.
Instead of Godot, I have to learn Unreal engine because the Godot series may take a long time to complete.
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
Классные уроки. к сожалению я уже изучал другие языки программирования и ваши объяснения бывают для меня в тягость, узнавать знакомый материал снова и снова, но я продолжаю смотреть, чтобы не упустить ничего нового. Я действительно хочу освоить 3d в godot, посмотреть как вы будете создавать персонажей в blender и имортировать в игру. Сколько планируется уроков? Когда вы их выпустите полностью?
@rafamichalski6150
7 ай бұрын
Для меня два видео об обучении программированию тоже слишком много
@mrdixioner
7 ай бұрын
Эти видео для самых новичков, никто не заставляет их смотреть. Я, к примеру, просто перематывал некоторые части видео, но в основном мне было интересно, хоть я и знал большинство того, что было сказано.
@user-rx6eu6fz7w
7 ай бұрын
@@mrdixioner я тот самый новичок, нормальных (которые подробно объясняют, а не тупо берут определенную ноду, потому что так надо и т.д.) гайдов по современной версии Godot в 3D не нашел, а эта серия видео выходит уж слишком редко для того количества информации, что дается в уроках
Thanks!
@BornCG
6 ай бұрын
😍