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

  Рет қаралды 25,992

BornCG

BornCG

Күн бұрын

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!
****************

Пікірлер: 57
@metacob
@metacob 7 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
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 2 ай бұрын
i first came here for Blender Tutorials, now i have been making mini game projects in Godot for 2 years🤣
@SILVERF0X13
@SILVERF0X13 3 ай бұрын
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 3 ай бұрын
Thanks! 🙂
@davidmanzato1987
@davidmanzato1987 6 ай бұрын
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 6 ай бұрын
☺️
@VirtualHimself
@VirtualHimself 8 ай бұрын
LESSGOO!! I just opened Godot to learn new stuff and you uploaded!
@chickensoap
@chickensoap 5 ай бұрын
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.
@ShawnLanphear
@ShawnLanphear 15 күн бұрын
4 out of 11 done haha. Again these are very good and comprehensive tutorials.
@elliottfraziertube
@elliottfraziertube 8 ай бұрын
Great stuff! Looking forward to the next lesson!
@StarzyKK
@StarzyKK 8 ай бұрын
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!
@Harbiter
@Harbiter 8 ай бұрын
Love your tutorials! You really explain things well and make it easy to understand.
@hunterzwer4095
@hunterzwer4095 8 ай бұрын
You are awesome please make your videos more often we really need it!
@barborahalova3514
@barborahalova3514 8 ай бұрын
These tutorials are awesome!
@MijmerMopper
@MijmerMopper 8 ай бұрын
I think Godot coding is going to be a bit more intuitive to me then what I tried previously (unity). Loving these vids.
@christophilous4831
@christophilous4831 8 ай бұрын
thank you for the great tutorials
@EggsToMe
@EggsToMe 8 ай бұрын
Just wanted to say, you are the best :D
@xmesaj2
@xmesaj2 8 ай бұрын
wow nice drop, godot has come long way
@chiewcck
@chiewcck 4 ай бұрын
Awesome tutorials !
@LeonderGrunder
@LeonderGrunder 2 ай бұрын
19:15 aaaaahmhmmhmhmhm. Definietly done in all my code...
@user-bi4ye3vt6q
@user-bi4ye3vt6q 5 ай бұрын
Great tutorial
@rremnar
@rremnar 8 ай бұрын
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-xz8lm4rd6x 2 ай бұрын
Dude knows how to teach GameDev, scripting and modeling. Awesome.
@jasonwilliams8730
@jasonwilliams8730 8 ай бұрын
Thank you
@gigantetelles6409
@gigantetelles6409 Ай бұрын
Muito bom cara vc explica muito bem, o vídeo é de fácil compreensão até para quem fala outra língua
@Zero0189
@Zero0189 5 ай бұрын
If GD script is Deleting code when you type before a character, try hitting the insert key (its above the delete key)
@Amrytmotion
@Amrytmotion 3 ай бұрын
Love from 🇮🇳
@zedernt5338
@zedernt5338 8 ай бұрын
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
@florrymccarthy6746 4 ай бұрын
coming from old school programming I find it hard to resist calling string variables Variable$ lol just the way I learned
@hypermonk33y56
@hypermonk33y56 5 ай бұрын
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?
@ainzooalgown119
@ainzooalgown119 4 ай бұрын
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 4 ай бұрын
i think you times it by delta
@killerz1o1
@killerz1o1 3 ай бұрын
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 3 ай бұрын
@@killerz1o1 thanks
@ainzooalgown119
@ainzooalgown119 3 ай бұрын
@@bigmoneybusiness34 that might be it, thank you
@thehonkinggamer2827
@thehonkinggamer2827 8 ай бұрын
Will your part 2 video be next week?
@BornCG
@BornCG 8 ай бұрын
It’s up now 😉
@HonsHon
@HonsHon 3 ай бұрын
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!
@Amrytmotion
@Amrytmotion 3 ай бұрын
Believe me godot 4 is available on android and i am doing all these in android 🔥
@BinaryBolias
@BinaryBolias 8 ай бұрын
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
@murdrer982 8 ай бұрын
Hi sir you are taking alot of time
@VirtualHimself
@VirtualHimself 8 ай бұрын
a tutorial every one week
@Wailingllama
@Wailingllama 8 ай бұрын
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 8 ай бұрын
These tutorials take hours and hours to make. Patience, Padawan.
@MijmerMopper
@MijmerMopper 8 ай бұрын
I'd ask for a refund
@rremnar
@rremnar 8 ай бұрын
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
@Hatifnatek32 8 ай бұрын
Next the character?
@BornCG
@BornCG 8 ай бұрын
Adding the Robot character comes a ways into the course. Next up is the second half of 'Coding 101'.
@thenoobarafinbg8378
@thenoobarafinbg8378 8 ай бұрын
PLS UPLOAD ALL PARTS
@BornCG
@BornCG 8 ай бұрын
If only these didn’t take time to edit! 🙃🤷‍♂️
@thenoobarafinbg8378
@thenoobarafinbg8378 8 ай бұрын
@@BornCG it takes 1week to edit?
@worldvador7046
@worldvador7046 5 ай бұрын
I don't understand this tutorial. How is there not a single person that doesn't get a specific step?
@HonsHon
@HonsHon 3 ай бұрын
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.
@jeffblack5527
@jeffblack5527 8 ай бұрын
😂 'Promo sm'
Godot 4 3D Platformer Lesson #5: Coding 101 (Part 2)
36:53
the best looking upcoming voxel games
5:24
nocaps
Рет қаралды 77 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 27 МЛН
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 4,4 МЛН
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 187 МЛН
I made Games with Python for 10 Years...
28:52
DaFluffyPotato
Рет қаралды 268 М.
How to set up 3D player controller in Godot in Hindi
32:31
Game wala BhAi
Рет қаралды 2,8 М.
4 Godot 4 Devs Make 4 Games in 44 Hours
25:19
DevLogLogan
Рет қаралды 479 М.
Winning My First Ever Game Jam? | Godot Devlog
10:25
mz_eth
Рет қаралды 281 М.
Godot Terrain Plugin CLIPMAP LOD - TerraBrush DevLog
5:14
spimort
Рет қаралды 3,4 М.
How I Mastered GODOT In Only 5 DAYS!
7:03
Reece Geofroy
Рет қаралды 164 М.
A Simpler Way to See Results
19:17
Logan Smith
Рет қаралды 98 М.
Is Godot any good for 3D games?
5:30
David Serrano
Рет қаралды 86 М.
These awesome 3D games are made in Godot
5:40
MrElipteach
Рет қаралды 86 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 27 МЛН