Godot 4 3D Platformer Lesson #9: Smooth Camera Following

  Рет қаралды 21,433

BornCG

BornCG

Күн бұрын

Пікірлер: 110
@RG-ef8vm
@RG-ef8vm 6 ай бұрын
Drives me nuts: teaches like I'm in Jr. High. Also drives me nuts: I've learned so many of Godot's basics that other tutorials have failed to teach me because he teaches like I'm in Jr. High. Thanks for being so thorough.
@LawlessNate
@LawlessNate 6 ай бұрын
The only issue with this tutorial is that it isn't done yet :( I started with this tutorial and I learned a lot. Now that I'm waiting for new episodes I've ventured off into looking at other tutorials for specific things, and most people that are making guides don't teach anywhere near as well as you do.
@jernejmarinko7635
@jernejmarinko7635 5 ай бұрын
Me to : (.
@ctkachuk08
@ctkachuk08 4 ай бұрын
I know the feeling. I started these not realizing that they were not done. If you don’t mind paying there is currently a humble bundle with some Godot development courses. It is available for 3 more days.
@LawlessNate
@LawlessNate 4 ай бұрын
@@ctkachuk08 I've been learning by doing, and by "doing" I mean googling the answers enough times until I've gotten to the point that I can do some things without any guides now. I'm to the point now that I'm procrastinating the making of the first level of my project.
@sirnat97
@sirnat97 4 ай бұрын
He has a few videos on his own channel covering other things too!
@shittinthegrass
@shittinthegrass 4 ай бұрын
he just made a video for the tutorial watch it
@IndyGibb
@IndyGibb 5 ай бұрын
I'm trying to learn Godot, and this was the tutorial series I found for Godot 4 3d (due to the changes from Godot 3, I needed help following other tutorials). I hope you continue this series soon.
@johnnobon
@johnnobon 4 ай бұрын
Thank you very much for these tutorials. I started a project in Godot 3 and then procrastinated for some time on it, so I decided to redo the whole thing in Godot 4 now that it's out. This has been very helpful as both a refresher and as a way to recognize the changes to the basic foundation between the two versions.
@huguerl
@huguerl 6 ай бұрын
Awesome tutorials! I just finished playing The Beginner's Guide and needed to get a sense of the game development process. Thank you for creating this series!
@Vivian-ts4pg
@Vivian-ts4pg 6 ай бұрын
Been loving this series, been wanting to make games for a while and I think this has been a great tutorial for me to start. Thanks!
@kaiquelazzaretti
@kaiquelazzaretti 5 ай бұрын
Thank you for this course! I know good content takes time to make but I am anxious for the next lesson!
@bitlong4669
@bitlong4669 2 ай бұрын
These tutorials are great. I’m hooked!
@bibbleskit
@bibbleskit 4 ай бұрын
The instructions are easy enough to follow along, and I found myself speeding the video up and skipping a little, haha. But the one concept that slipped my grasp was the camera rig. It took me a few minutes of sitting here and thinking to understand it. The "Camera Controller" Is like the base of a camera mount, the "Camera Target" is like the end of the arm of the mount, and the Camera3D is the actual camera. So by positioning the mount on the player, it's always going to be attached to the player. Moving the arm doesn't change the position of the mount, but lets you position the actual camera. This helped me understand why I often see cameras nested this way in people's projects.
@gamerzellps
@gamerzellps 5 ай бұрын
I'm learning from 0 ando got here on lesson 9...keep up the good work my friend. I've never seen a lesson run so smooth like yours'. It's like your 25 minute videos fells like half of it. It's really enjoyable to learn from you. #Brazil
@BhaskarRoy24
@BhaskarRoy24 4 ай бұрын
Sir, your teaching style is very engaging and easy to understand. We are friends group started to explore game dev from youtube, thank you for helping us. Waiting for your next upload
@BornCG
@BornCG 4 ай бұрын
Thanks for your comment! ☺️ Lesson #10 goes live on Saturday!
@chezzy00
@chezzy00 4 ай бұрын
@@BornCG Please do complete these, they are soo good!
@psychic_digit
@psychic_digit 6 ай бұрын
Yooo a new tutorial!!! Glad to see it :) thanks again!
@BornCG
@BornCG 6 ай бұрын
You bet! More to come
@Fimbulveter
@Fimbulveter 5 ай бұрын
Thank you for the great tutorials, it makes me feel very comfortable in godot
@danielhalond6292
@danielhalond6292 6 ай бұрын
Amazing series of tutorials! Thanks so much
@Eldritchcrown99
@Eldritchcrown99 5 ай бұрын
These videos are sooooo helpful. Thank you so much!! :)
@gamingtrpro
@gamingtrpro 5 ай бұрын
Well that was nice, till the next video i'll make a copy of this project so far and complete the rest of it myself :) Thank you for making great content
@ahmed_Mohamedf
@ahmed_Mohamedf 5 ай бұрын
what a teacher!
@Govindhuujh
@Govindhuujh 6 ай бұрын
please next part 😊😊😊😊😊😊
@mewingmonkey-q4g
@mewingmonkey-q4g 2 ай бұрын
u really helped
@3dtoaster668
@3dtoaster668 5 ай бұрын
great stuff
@Jdaucfqluoess
@Jdaucfqluoess 6 ай бұрын
Hi, thanks for the tutorial. I found one of your videos because I needed to understand world environment, and I ended up watching the whole course. I have one question about the 0.15 value you use in the lerp fonction : as it will be executed every frame, shouldn't you choose a much bigger value and multiply it by delta, so your game would not depend on the frame rate ?
@gonfreecss3227
@gonfreecss3227 6 ай бұрын
amazing tutorial please try to make more videos
@darkhunter777
@darkhunter777 3 ай бұрын
How write TEXT in 3D scene ?
@timolawuyi1501
@timolawuyi1501 5 ай бұрын
Pls as extra video to the series, can you do a save and load game system, it seems like an easy concept but it's really difficult to implement 🥺
@SootytheMagicalBear
@SootytheMagicalBear 6 ай бұрын
is -1 left and + 1 right , z + 1 back and z -1 forward? because it seems to be the opposite to what the transform tool is saying when you move the object in the scene? I added a print function to see what velocity I was getting when moving and everything seems to be the opposite.
@PastaMaster115
@PastaMaster115 6 ай бұрын
This isn't working. I do every step you do in building the camera, checking top level and coding it to follow, but when I go to my level 1 scene, the camera is placed in front of the player in first person. Not behind, where I put it. I even deleted the whole camera setup and did it again from scratch. Same thing. When I leave Top Level out of it, and just place the camera normally, without the position code, it follows just fine exactly where I put it relative to the player. Edit: Okay so what I was doing was using the Camera_Controller node to move the location and Camera_Target to angle it. I guess I should have been using Camera_Target for both things. The camera still shows up right above my character in the level 1 scene but when I play it, it's behind me like it should be. What a weird way to do that. It seems to get the exact same result. Would the lerp() function still work if you don't do it like this?
@soloxq_
@soloxq_ 3 ай бұрын
im having some lag on the fps after this what can i do?
@MehisKasonen
@MehisKasonen 3 ай бұрын
Started with your 3D tutorial for Godot 3 at first. Then realised, since I am on Godot 4.0>, that they totally overhauled how the camera behaves. I fail to see how this is supposed to be simpler: clicking target vs creating nodes of nodes and manually coding. ¯\_(ツ)_/¯
@jasonwilliams8730
@jasonwilliams8730 6 ай бұрын
👍
@panxel8615
@panxel8615 Ай бұрын
Please use delta..
@smileyy-zw5yc
@smileyy-zw5yc 5 ай бұрын
MAKE MORREEEE!!!!!!!
@BornCG
@BornCG 5 ай бұрын
All lessons are recorded, just in my one-man-band editing pipeline. They’re coming. Patience. ☺️🙃
@dadadies
@dadadies 6 ай бұрын
One of the best tutorials ever. Touches upon the very basics of just about everything. A simple and yet thorough tutorial. The pacing and structure is also perfect. You definitely know how to teach according to me of course. Thanks for helping in my transition from Unity to Godot.
@BornCG
@BornCG 6 ай бұрын
Wow, thanks!
@chezzy00
@chezzy00 4 ай бұрын
@@BornCG please complete the rest..... these are so good!!
@soithangsing
@soithangsing 6 ай бұрын
Patiently waiting for the next video. Great series!!!
@noremacanimation
@noremacanimation 4 ай бұрын
I'm also "patiently" waiting for the next part.... ;)
@master_zeec
@master_zeec 4 ай бұрын
This tutorials are gold.
@abhirammakesgames
@abhirammakesgames 6 ай бұрын
Your videos are amazing. I learned a lot of godot 3d thanks to you!
@PhilippTemkin
@PhilippTemkin 6 ай бұрын
This is what I think is needed now! Thank you very much!!!
@BinaryBolias
@BinaryBolias 6 ай бұрын
For getting a reference to a node in the scene tree, I prefer to use the _export_ annotation, rather than the _$_ construct. *@export var camera_controller: Node3D* _(not within a function, similar to the "var gravity" declaration)_ The variable is then set outside of the script, and it will automatically update if the node's name is changed, or its position within the scene tree is modified. *-$Camera_Controller.position-* *camera_controller.position* I can then mess around with the structure of the scene without ever needing to go back into the script to fix node paths.
@ninomojo
@ninomojo Ай бұрын
You explain things really well. Very grateful you took the time to make this series. Thank you so much!
@unknownanimators6126
@unknownanimators6126 5 ай бұрын
I want to be a little selfish here and ask you to teach us how to rotate our camera without a mouse(for example the god of war or prince of Persia
@keepl00king39
@keepl00king39 4 ай бұрын
Although I hate to be the 70th comment, I must thank you!
@Blademaster162
@Blademaster162 5 ай бұрын
This is my first time learning to use a game engine and apply code, so this tutorial series has been a giant help. Thanks a bunch for putting all this great info up for free 🙂
@luckycapgaming5957
@luckycapgaming5957 2 ай бұрын
Had a little syntax error by misspelling $Camera_Controller as $Camera_Controler , error came up as “Invalid set index ‘position’ (on base: ‘null instance’) with value of type ‘Vector3’.” So if you’re getting an error like that, make sure you spelled everything correctly! EDIT: Another error I found was that the camera wouldn’t follow my cube after implementing the code. Turns out I had the “Top Level” toggle on for Camera_Target and Camera3D by accident. Their movement was de-synced from the controller’s.
@erik....
@erik.... 5 ай бұрын
Great series. It was easier than I thought to bring models from Blender into Godot, and also make updates to the models works really good. Looking forward to the next episode.
@LucasRafaelDesenhista
@LucasRafaelDesenhista 3 ай бұрын
thank you, I tested about 3 types of camera codes and all of them was trembling while pressing more than 2 seconds. Your way solved that problem. thank you O:)
@lgm110
@lgm110 5 ай бұрын
Amazing, i'm trying to get back to game development and was a bit rusty but your tutorials really helped me, hope to see more like these, thank you!
@massterbeef
@massterbeef 3 ай бұрын
I am stuck on getting the camera to follow the character I put the same code in but the camera is still in a fixed position. :/
@duarte6653
@duarte6653 3 ай бұрын
10:20 I had that error too, make sure that you have the right thing toggled on!
@massterbeef
@massterbeef 3 ай бұрын
@@duarte6653 Ah thank you I thought that was this issue it was right under my nose!
@theakman2
@theakman2 Ай бұрын
If you're interpolating by a fixed amount per frame (e.g. 0.15 per frame) then the interpolation speed will depend on the frame rate - e.g. the camera will move ten times faster at 100fps compared with 10fps. If you want a consistent interpolation speed regardless of frame rate, you'd need to vary the lerp amount by the current frame rate.
@TJ-fv9vs
@TJ-fv9vs 6 ай бұрын
Thanks for this nice video! Just a question: you are not multiplying the constant 0.15 by delta_time because it's inside the _physics_process() function right? And _physics_process() is guaranteed to run at a fixed amount of frames per second. Otherwise, as I understand it, when inside the regular _process() function, you would typically write 0.15 * delta_time to obtain frame-rate-independent camera smoothing
@ShawnLanphear
@ShawnLanphear 3 ай бұрын
9/11 tutorials done!!! Question, do you ever go over how to make a smoother jump function or would you know how to fix this?? Currently when you hit the space bar you have enough time to float to the left or right and then drift back to the original spot before the character hits the ground again. Awesome tutorials though as well, please keep up the work you're single handedly teaching me the basics of Godot 3D haha
@hache_raw
@hache_raw 5 ай бұрын
Thanks for these guides. I know you have all videos recorded and you recently had a baby (congrats) but... Any roadmap? Have you planned, maybe to upload the videos without editing?
@DestinyWISDOM-v7o
@DestinyWISDOM-v7o 8 күн бұрын
Hi my name is destiny but my friends come me dd i like to which you evrtime
@Primal_Real
@Primal_Real Ай бұрын
I fixed the issue now but it was painful as for some reason the code all says now "float" and other things so I had to spend one entire hour figuring out how to make it work but now it finally does 😭.
@dirkschiller1637
@dirkschiller1637 Ай бұрын
btw: You still can use whitespaces in node names, eg: $"Camera Controller".position = position
@BinaryBolias
@BinaryBolias 6 ай бұрын
The purpose of the "Camera_Target" node would appear to be purely for educational purposes; included to demonstrate transformation dependency. Beyond that, I disapprove of its inclusion, as it does complicate the scene for no apparent benefit. _(if it is given a purpose in a later episode, the node could have been added in that same episode, rather than that purpose having been arbitrarily premeditated here)_ Additionally, I'd prefer to keep node names in _PascalCase,_ but that naming convention not being a strict rule may be good to convey.
@ChapC_YT
@ChapC_YT 2 ай бұрын
Amazing video, helped me out alot.
@dreamster8264
@dreamster8264 5 ай бұрын
Great tutorial playlist! I fell at the final hurdle, my camera zooms ahead of steve and I've no idea why. I've tried remaking the camera and all its nodes again but it still doesn't seem to want to be attatched properly to the player. Gonna mess around with it but if anyone else had this and worked it out I'd love to know how to fix it!
@timechijo8808
@timechijo8808 6 ай бұрын
Please make a released version for compatibility graphics. I can't play the final game as my laptop is not strong enough. Thank you so much also for the tutorials.
@Ivan75953
@Ivan75953 5 ай бұрын
the camera code didnt work for me untill I used global position like this $Camera_Controller.global_position = lerp($Camera_Controller.global_position, global_position, 0.1) when I used position the camera would go faster than Steve Anyone else had this issue?
@MrZackcowardly
@MrZackcowardly Ай бұрын
i had the same issue on the initial $Camera_Controller.position = position, fixed it by adding * delta to the end of it
@ShOKeRplz
@ShOKeRplz 4 ай бұрын
Thanks for a very nice tutorial. For a camera following script, I think it's better to calculate the distance between previous point and the current one and then multiply it by some constant, 0.15 in your case. This way even when player is moving too quickly (falling for example) the camera will still be able to catch up. Here's an example: var position_difference = Vector3($CameraController.position.x - position.x, $CameraController.position.y - position.y, $CameraController.position.z - position.z) var distance = sqrt(pow(position_difference.x, 2) + pow(position_difference.y, 2) + pow(position_difference.z, 2)) $CameraController.position = lerp($CameraController.position, position, distance * 0.1)
@panxel8615
@panxel8615 Ай бұрын
where is your delta
@fasilanvar1574
@fasilanvar1574 6 ай бұрын
Great tutorial. wondering when the next episode releases
@shittinthegrass
@shittinthegrass 4 ай бұрын
just did
@garylai5174
@garylai5174 5 ай бұрын
Amazing playlist! Thank you so much. There are more incoming videos to finish this game right?
@THEDEVBOIS
@THEDEVBOIS 5 ай бұрын
the most basic shi feels like a lot when your starting out but give it like 3 months of repetitive navigation and itll feel like you nvr went through this course 😂
@brawlkids2621
@brawlkids2621 5 ай бұрын
Great tutorial, it helped me so much. How many videos do you plan on making in this series?
@baz_7
@baz_7 4 ай бұрын
Bro thank you very much my game its being better ❤❤❤
@alexmiguel4828
@alexmiguel4828 5 ай бұрын
please do an tutorial on double jumping and diving!i love ur vids!
@sayris01
@sayris01 6 ай бұрын
Thank you :) as always very clearly explained
@tylerherr4288
@tylerherr4288 3 ай бұрын
6.0/60.0 feels nice on the camera
@Mr-optimistic404
@Mr-optimistic404 6 ай бұрын
Love you ❤
@mehmetonurlu
@mehmetonurlu 4 ай бұрын
Nice tutorial
@PecyoWR
@PecyoWR 5 ай бұрын
Thank you so much for this! Will for sure leave a tip when I followed this series to the end and start working on my first project after that :) glad im just starting gamedev it seems like the perfect tutorial for someone with no experience at all!
@TheSkypeConverser
@TheSkypeConverser 3 ай бұрын
ilysm
@dilettodiletto3448
@dilettodiletto3448 4 ай бұрын
just gonna leave us hanging here? :( I'd gladly pay for the rest if it's possible
@BornCG
@BornCG 4 ай бұрын
The next lesson, #10, is out now!
@dinosaur2500
@dinosaur2500 6 ай бұрын
waiting for next tutorial you are the best
@dinosaur2500
@dinosaur2500 5 ай бұрын
hi is it gonna be out soon? i would like to see lesson 10 and im sure im not only one btw great videos
@Hairyminecraftsteve
@Hairyminecraftsteve 6 ай бұрын
Where is the rest?
@BornCG
@BornCG 6 ай бұрын
Still to be released. All the parts have been recorded, but I ask for your patience please as they’re edited and released!
@MindsMouth
@MindsMouth 6 ай бұрын
Hello and thank you again for this series. Your tutorials have been the most helpful for me, even with my slightly slower learning ability I have been able to follow your videos without having to pause or slow the play speeds, as I have experienced with most other online tutorials. Your pace and presentation is perfectly balanced, I am very grateful for you as an instructor. Please keep to the amazing work you do to keep producing these top notch tutorial series. 🙌🙌🙌👏👏👏
@Edgewoodskateboards
@Edgewoodskateboards 4 ай бұрын
cant believe i managed to make it this far!really hope the new lessons drop soon before I forgot everything!
@timolawuyi1501
@timolawuyi1501 5 ай бұрын
Trust me when I say this, you won't find find a patient and good tutor like him for Godot for beginners
@FRESHxLEMONxSLICES
@FRESHxLEMONxSLICES 5 ай бұрын
Amazing Series from Amazing man
@Stanlix01
@Stanlix01 6 ай бұрын
Thank you!
@BornCG
@BornCG 6 ай бұрын
You're welcome! 🙂
@XylophoneAtomique
@XylophoneAtomique 6 ай бұрын
Can't wait for the next one :) Very good stuff!
@jsj0520
@jsj0520 5 ай бұрын
cant wait for the next one!
@KoruptedKarma
@KoruptedKarma 6 ай бұрын
Hands down the best tutorials for Godot 4. You should be teaching classes.
@BornCG
@BornCG 6 ай бұрын
Thanks! 😊 .. and, well, I would, but I'm too busy being a high school teacher 😜
@Tech_Code127-76
@Tech_Code127-76 2 ай бұрын
Good tutorial but... you forgot that I want the camera to be able to move as well, not stay locked.
@aligmayu5322
@aligmayu5322 6 ай бұрын
PLEASE DONT STOP MAKING GODOT TUTORIALS🫡
@BornCG
@BornCG 6 ай бұрын
All 26 lessons in this course are already recorded, just in line too be edited 🙂😉
Godot 4 3D Platformer Lesson #10: Modeling World Blocks!
53:04
Modular Upgrades Made Easy Using the Strategy Pattern
6:41
Bitlytic
Рет қаралды 67 М.
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,9 МЛН
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,9 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 66 МЛН
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 80 М.
It's Hard To Make Games
18:01
Acerola
Рет қаралды 250 М.
How to Start Making Games with No Experience
10:55
Goodgis
Рет қаралды 64 М.
I Should've Tried Godot a Year Ago
8:25
Weekie
Рет қаралды 46 М.
My Experience Moving to Godot from Unity
16:54
DarkDax
Рет қаралды 27 М.
Godot's Quaternion Variant is Beautiful (and misunderstood)
18:52
every step to actually make your dream game (then sell it)
24:27
Optimizing my Game so it Runs on a Potato
19:02
Blargis
Рет қаралды 591 М.
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,9 МЛН