Тёмный

Godot 4.0 Third Person Controller Tutorial ( 2023 ) 

Lukky
Подписаться 36 тыс.
Просмотров 164 тыс.
50% 1

Assets : github.com/lukky-nl/third_per...
Mixamo : www.mixamo.com/#/
Kenney : www.kenney.nl/assets/prototyp...

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 345   
@o1497
@o1497 9 месяцев назад
Pro tip: when importing models from blender, if you put -col at the end of the name of the models in blender, Godot will automatically add a collider for the model when you import it!
@lukky.
@lukky. 9 месяцев назад
Oh cool I didn't know this. gonna play around with it, thanks for the tip!
@christiandelao2547
@christiandelao2547 6 месяцев назад
​@lukky. Can also do -vehicle to make it a vehicle body, and -wheel for the wheels, there's a few others too, also for animations -loop
@echoless3484
@echoless3484 4 месяца назад
Is this when I am naming the file when exporting it?
@pluto100_
@pluto100_ 4 месяца назад
@@echoless3484nop, Its on names objects from inspector scene
@NinjaDog4339
@NinjaDog4339 3 месяца назад
@echoless you make a object duplicate it name your last object but add a dash at the end then colony like this yourobjectname-colonly click on the colony hold shift click on the normal object select parent object make sure the normal object is the parent and the colony is the child open up the objects children then click on colonly hold shift then click on the object file, export, collada, selection only put it in your go godots blender file.
@Darkest-Kn1ght
@Darkest-Kn1ght Год назад
@Lukky You stand out from the crowd of RU-vidrs providing Godot tutorials because you explain the little things that most simply skip over, so you never know the reasons why things happen. Your tutorials, I dare say, educate those of us learning this game engine, in a way that we can take anything you show, and do what WE want to get done. I consider you among the top tier tutorial creators here. I'm looking forward to more videos from you in the future. Would you happen to post anything anywhere else on social media, such as Twitter? Would you happen to tinker around in Blender as well?
@lukky.
@lukky. Год назад
Thank you so much for the kind words 😊. Yes I'll post all my socials on me channel soon. ( Twitter is lukky_nl ). And yes I do use blender alot most of my games start as blender mockups actually :)
@da_cat
@da_cat 10 месяцев назад
Jesus ... i tried for a week to achieve this by trying to merge like 7 different tutorials from different people and different engine versions. This is absolutely perfect. Thank you so much 🥳
@voc007
@voc007 Год назад
Thanks for the tutorial! You can add a springcamera3d to camera-mount, move, and child the camera3d to the springcamera3d, adjust the spring length to match your camera3d, and now you have object collision detection, so the camera3d does not go thru the objects.
@yarop1794
@yarop1794 9 месяцев назад
Learned something new, thanks!
@alexfrankenberger
@alexfrankenberger 19 дней назад
@voc007: very cool. that was new for me. the name of the node is SpringArm3D in Godot 4.2.2
@albiceleste101
@albiceleste101 11 месяцев назад
10:00 when adjusting the camera you can press ctrl+2 to divide the viewport in 2, so you have the camera preview opened then switch back with ctrl+1
@AlanDevelops
@AlanDevelops 9 месяцев назад
very useful!
@gurglesprain
@gurglesprain 9 месяцев назад
If you get the error "Can't change loop mode on animation embedded in another scene.", I fixed this from the Animation window with "Animation" -> "Manage Animations..." -> Click the save icon -> "Make Unique"
@thricemindblown7883
@thricemindblown7883 8 месяцев назад
Works. You helped, at least one, real person.
@octobraingaming6847
@octobraingaming6847 8 месяцев назад
thank you, this helped
@ArvanCC
@ArvanCC 8 месяцев назад
The homie.
@owenlloyd2528
@owenlloyd2528 8 месяцев назад
Hi. Where did you click to get the "manage animations"? I fiddled around a bit but couldn't find that. I made the mixamo_base a scene, and then edited in that scene, which appears to be working.
@thricemindblown7883
@thricemindblown7883 8 месяцев назад
hey. More specifically at the top of the animation window, around the middle, hovering the mouse over it and "animation tools" comes up. Clicking on it, manage is between new and duplicate. I'm on 4.1.1 (if that affects anything. It's hard to tell sometimes.) @@owenlloyd2528
@snoedy2125
@snoedy2125 8 месяцев назад
im so happy i found ur channel, u actually go through theses things in such nice detail, and i also love the slower tone of the videos. Thank u so much
@azralan618
@azralan618 Год назад
This was really helpful to get a good base to experiment with. Easy to follow, some potential pitfalls were explained well. Great tutorial!
@think4ward
@think4ward Год назад
@Lukky thank you so much! This helped me a lot! I love the way you are explaining everything in detail.
@hackenshaw
@hackenshaw Год назад
Definitely one of my favourite Godot RU-vidrs out there! Always excellent quality
@IvanKhmel
@IvanKhmel 3 дня назад
Really appreciate how you go slow and explain your process. 100%
@jasonadams4321
@jasonadams4321 5 месяцев назад
This is exactly what I wanted to learn and you are very easy to understand and follow. Thank you!
@nezbro2011
@nezbro2011 16 дней назад
I've watched a lot of videos recently trying to find a more updated tutorial mainly for changes in newer versions of Godot scripting etc, but have always found you to be the best at getting someone started!
@federicomaciasvidal7857
@federicomaciasvidal7857 9 месяцев назад
This is gold man, much appreciated!
@ryandese
@ryandese Месяц назад
Thanks for the tutorial! Simple and easy to follow.
@cartoonhead9222
@cartoonhead9222 10 месяцев назад
Thanks for the guide, very well made. Please keep it up!
@danford6678
@danford6678 11 месяцев назад
I love your intro - "Hey, it's Lukky" Thanks for the lessons
@cholasimmons
@cholasimmons 10 месяцев назад
by far the best Godot tutorial out there, by far!!
@safwanrazif423
@safwanrazif423 6 месяцев назад
What a great tutorial ! Love it.
@gumquat
@gumquat 10 месяцев назад
phenomenal work!
@ezzat_za
@ezzat_za Год назад
Simple, and great thanks for this tutorial and please keep post more about godot 3d!
@stevenisonline
@stevenisonline 11 месяцев назад
This is top notch! Thank you!!!
@misters7303
@misters7303 10 месяцев назад
Thx you very much, not only i have learned how to set up 3rd person camera ( which was point of watching this video at first ) but also how to add animations , running and transitions.👍
@alekon2253
@alekon2253 6 месяцев назад
Thanks a lot!!! you helped me a lot with mixing animations!!!
@Sitwayen
@Sitwayen 9 месяцев назад
A tutorial that empowers and has motivated me learn more.
@lukky.
@lukky. 9 месяцев назад
The biggest complement, thanks you🙏
@jamesc9168
@jamesc9168 Год назад
great tutorial thank you!
@antoniocarvalho7031
@antoniocarvalho7031 Год назад
Great video. Keep Up!!
@daygenandrews1321
@daygenandrews1321 Год назад
more please, seriously how did you crunch my last 6 hours or so into the first five minutes x.x I wish I found you first!
@JP_blade
@JP_blade Год назад
Life saver thank you man this helps so much
@sugimanjuara8195
@sugimanjuara8195 Год назад
love your videos, thanks for sharing
@quinnw4398
@quinnw4398 8 месяцев назад
I really appreciate this. Thank you
@emberjaxx585
@emberjaxx585 7 месяцев назад
If anyone is having trouble with the camera controller around the 23:00 minute mark, where there character stops looking in the direction your camera is facing while moving. It may be because instead of visuals.look_at(position + direction) should actually be visuals.look_at(global_position + direction). For me the position command was outputting an increasing value no matter where I walked rather then referencing the global position. You can reverse engineer this issue by using the print_debug(position) line which then will print the variable on the screen when running the game. Good luck guys! also great video man!
@deprecatedgames
@deprecatedgames 6 месяцев назад
Thanks! My player was walking slanted like some jive turkey.
@Taimoorabdullah
@Taimoorabdullah 5 месяцев назад
Thanks, fixed my issue.
@akimmigon2
@akimmigon2 4 месяца назад
for some reason my character look to the reverse position when i go foward he look to back wtf
@DavidArt
@DavidArt 11 месяцев назад
this is what I was looking for .. big thanks :)
@vasilica.lopatica
@vasilica.lopatica 9 месяцев назад
Verry good tut and resource thank you buddy!
@mkjyt1
@mkjyt1 Месяц назад
This was awesome
@Fjordkeeper
@Fjordkeeper 6 месяцев назад
Thank you for the video, this helped me a lot!
@JohnnyCashOriginal
@JohnnyCashOriginal Год назад
great tutorial mate!
@pyruvicacid3757
@pyruvicacid3757 Год назад
This guide is really nice and in-depth. It is the first time I try to make a game in Godot and this really helps, thanks! I would like to see a guide expanding on this on how to add hitpoints and attacks and the logic behind it.
@PaulMetalhero
@PaulMetalhero 10 месяцев назад
Great tutorial!
@ardiloki_
@ardiloki_ 9 месяцев назад
Thank you. This help me a lot 👍
@alexfrankenberger
@alexfrankenberger 19 дней назад
liked and subscribed. Keep up the good work plz.
@Wasilij1337
@Wasilij1337 11 месяцев назад
thanks so much dude!!
@romariobryan8011
@romariobryan8011 10 месяцев назад
melhor tutorial, bom trabalho
@nathanpotter1334
@nathanpotter1334 11 месяцев назад
You earned the sub & like mate. Cheers
@seabumbb3067
@seabumbb3067 4 дня назад
Thank you! This video moved me forward in my gamedev progress more than any of the tutorials I have watched on YT or paid for at other sources. Since I am an old man just entering gamedev at retirement (Dark Souls inspired gamer, sadly only discovering this art when Elden Ring was released), I have been trying to learn a lot of skills from drawing to coding, music, to modeling - so fun! I have not coded anything since my Fortran and Cobol days, (Pacal, C, Basic, etc...) and I sure wish there was a reference book for gdscript as opposed to the online documents, but my brain is finally starting to rewire for art and coding, despite my preferred learning method of books. With this little 3d controller tutorial I have been able to craft my real-world farm into godot with an adequate animated character model of myself. I decided that modeling my farm and working the farm with a 3d character would be a great way to learn gamedev fundamentals before venturing further. Oh, like a real fool, I modeled the terrain and building in Blender so that I could port them to both Ureal5 and godot to see which I prefer. Doing this made my head spin. I am sticking with godot for now, despite Unreal5 being much easier to set up the base farm and character, but I like coding, challenges and the small package of godot without the ridiculous delays and crashes of Unreal. Apologies for the long-winded comment but I am feeling more inspired and capable simply because of your excellent tutorial video.
@ChuckyMaster
@ChuckyMaster 9 месяцев назад
God Bless you for teaching GODOT brother!
Год назад
thanks for tutorial, awesome like!
@talhasam507
@talhasam507 7 месяцев назад
Thanks 👍 100% working
@Gillpradi
@Gillpradi 7 месяцев назад
Greta video. Thanks a lot. I'm gonna need this for remaking my unity game into Godot. Thanks! Didn't know Godot was SO MUCH SIMPLER than unity. Your explanation was on point. Thanks a lot!
@Jingleboy14
@Jingleboy14 7 месяцев назад
Great tutorial! One addition that people might find useful is clamping the camera angle i.e. setting a max / min angle so you can't make the camera go upside down. At 16:00 add the following in line 20 (under the camera_mount.rotation.x): camera_mount.rotation.x = clamp(camera_mount.rotation.x, deg_to_rad(-90), deg_to_rad(45)) (If you want you can set variables for CLAMP_MAX (-90) and CLAMP_MIN (45) and tweak them til you get what you want.)
@plutoniumgamestudio
@plutoniumgamestudio 6 месяцев назад
Thanks! This is very helpful!
@lamywater
@lamywater 5 месяцев назад
perfect!
@ozturkgoker3880
@ozturkgoker3880 4 месяца назад
i love you
@artieschmidt3039
@artieschmidt3039 4 месяца назад
very cool, thank you :)
@artieschmidt3039
@artieschmidt3039 4 месяца назад
Amazing tutorial and nice voice :)
@R0DBS
@R0DBS 3 месяца назад
Best tutorial yet
@thelaughingman1
@thelaughingman1 3 месяца назад
How do you not have more subs? This is the best simple no nonsense tutorial i've seen that's actually useful.
@aorusaki
@aorusaki 8 месяцев назад
What an Amazing video
@Assem_DEV
@Assem_DEV 5 месяцев назад
Beautiful code. And effective
@tc8464
@tc8464 10 месяцев назад
Excellent!
@WhiteDjayanegara
@WhiteDjayanegara 9 месяцев назад
A great ideo. Subscribed and bell-ed. !!
@user-pl6yb1xp2h
@user-pl6yb1xp2h 9 месяцев назад
Thank You for this very helpful information I could have died if this video was not made
@Shubham-yc6nz
@Shubham-yc6nz Год назад
This video was amazing 🤩🤩
@lukky.
@lukky. Год назад
Thank you :)
@maxkurganov5263
@maxkurganov5263 Год назад
I stumbled across your videos by accident - fantastic! on RU-vid, everyone is yelling and chattering so much in their videos. Starting to watch your videos at first I experienced an unusual sensation in my ears - as if I suddenly teleporting from a loud, noisy metropolis to the mountains, to calming nature. Your videos are just some educational ASMR. And most importantly, useful knowledge as a result. Please keep going 🙏! It's great. Huge respect for your work, man! Thank you.
@Karce963
@Karce963 Год назад
@Lukky, wow! This is one of the best tutorials I have found, especially related to Godot. Looking forward to the next ones! Anything related to 3d games is great :D *It would be awesome to see how you set up the jumping animation with this style. It can be quite confusing to new people how to add extra animations with different requirements.
@jcobreti
@jcobreti Год назад
Fantástic tutorial
@hhw8508
@hhw8508 Год назад
Hello, I am a friend in China, I am a newcomer to Godit, and I love Godot Your videos are great too! Godot is also popular in China! Especially after 4.0, every one of your videos is great and special! Hope to continue to produce great videos!
@user-ky6ug6eq4c
@user-ky6ug6eq4c Год назад
thank you so much very helpfull
@lukky.
@lukky. Год назад
You're welcome :)
@moazgaming505
@moazgaming505 Год назад
you are the best
@Ver2ion
@Ver2ion 8 месяцев назад
seen image-line and i subbed
@spartan5760
@spartan5760 10 месяцев назад
I thuroughjly enjoyed this tutorial :D I would like to see other tips and tricks for setting up 3rd person controls such as removing walking / running animation loop while in jump. but this solves 99% of what most beginners have to setup first. Anyways, keep up the excellent work! will be subscribing RN
@XanthumS
@XanthumS 3 месяца назад
s tier tutorial
@kingtrigon
@kingtrigon 9 месяцев назад
i used this allot
@iantaggart3064
@iantaggart3064 5 месяцев назад
Thanks.
@Rolf-son-of-an-electrician
@Rolf-son-of-an-electrician 4 месяца назад
Long time ago, i played a 3rd person PS1 game called Army Men 3D. They were very proud to have made a 3D video game back then. They used over head for general movement, panning to a quasi-top-down like Metal Gear Solid in tight corridors, and over the sholder to solve camera clipping problems: by having the camera zoom ONTO the sholder like a parrot, rather than go true 1st person. This meant the head never blocked the camera even for just a single frame. In this case, it was a shooter, so putting the camera on the right sholder wasn't an issue cuz it was in line with the gun. For a melee fighting game, where you use your right and left in equal measure, this might be an issue.
@sassani134
@sassani134 8 месяцев назад
Thanks a lot
@gim-ori
@gim-ori Год назад
it's awesome
@BuffHobbit
@BuffHobbit Год назад
Thanks for the tutorial. I have a problem with the character getting tilted when I start moving at like 45 degrees. It happened after I wrote "visuals.look_at(position + direction)". Edit: I found this in the comment section "visuals.rotation.y = lerp_angle(visuals.rotation.y,position.angle_to(position+direction),delta*rotation_speed)" wich is an alternative to the first line of code allowing for smooth rotation, it also fixed my initial problem. If anyone has the same problem use this instead, just declare a new "var rotation_speed = 10" at the top and it worked fine.
@user-tj3vj6ut6h
@user-tj3vj6ut6h 4 месяца назад
Visual position xyz 0 in inspector window
@rayanm2175
@rayanm2175 Год назад
nice wallpaper man , the tutorial too
@lukky.
@lukky. Год назад
Thank you 🙏
@Mac3k
@Mac3k 11 месяцев назад
best tutorial
@xd7052
@xd7052 Год назад
for those who don't know how to move all locally created mixamo animations just use the model and skeleton from one of those nodes and in the animation player nodes of the other scenes just copy and paste it to the animation player node of your preference (it has to be only one) entering manage animations there you paste it by touching the portfolios, if it doesn't even let you copy it you have to save the scene with (ctrl+s) there it lets you do that, I'll let you know don't know much because I spent a whole day looking for how to do that and in the end I discovered it para los que no sepan cómo se mueve todas las animaciones de mixamo creadas localmente solo tienen que usar el modelo y el esqueleto de uno de esos nodos y en los nodos de animation player de las demás escenas solo tienen que copiarlo y pegarlo al nodo animation player de su preferencia (tiene que ser uno solo) entrando en manage animations ahí lo pegan tocando en el portafolios, si no les deja ni copiarlo tienen que guardar la escena con (ctrl+s) ahí les deja hacer eso, les aviso a los que no sepan mucho porque estuve un día entero buscando como hacer eso y al final lo descubrí yo
@dinkleburg43
@dinkleburg43 8 месяцев назад
I spent 2 days trying to figure this one out and stumbled upon this afterI finally fixed it.
@ducky_well
@ducky_well Год назад
thanks
@hugototi4465
@hugototi4465 Год назад
YES
@Captaincrabs_
@Captaincrabs_ Год назад
The easiest godot 4 tutorial i have seen so far explained everything as it is meant to be thank you so much @Lukky
@thestickmahn2446
@thestickmahn2446 9 месяцев назад
*If you don't want the visuals to snap to the directions, add these two lines of code instead of the tutorial code:* In _INPUT() add: visuals.rotate_y(deg_to_rad(event.relative.x*PUTSENSITIVITYHERE #
@TheLastPhoen1x
@TheLastPhoen1x 9 месяцев назад
Thanks a lot, I was mucking around with Asin and Atan2 for an hour earlier trying to get that done.
@thestickmahn2446
@thestickmahn2446 9 месяцев назад
No problem, me too tbh 0_0@@TheLastPhoen1x
@dareokoski8158
@dareokoski8158 9 месяцев назад
your a life saver
@thestickmahn2446
@thestickmahn2446 9 месяцев назад
no problem@@dareokoski8158
@yarop1794
@yarop1794 9 месяцев назад
Thank you; had to change to atan2(-input_dir.x, -input_dir.y) for some reason.
@moopshock
@moopshock 11 месяцев назад
@Lukky Thank you so much for this tutorial, it is a great addition to the community's array of learning resources. I have a special request, seeing you're aware of the Gears of War series - would you be willing to do a tutorial in Godot on how to create a Cover System similar to that seen in Gears?
@ChuckN0r15
@ChuckN0r15 6 месяцев назад
This tutorial was exactly what I'm looking for, thanks for making it. Also, do you have any videos covering that shooter project you showed at the end?
@OrionPhilosophy
@OrionPhilosophy Месяц назад
This is amazing man, thank you. Do you have any plans to expand this to more advanced 3rd person movement like jumping/climbing/fighting etc?
@73unny
@73unny 9 месяцев назад
baby goat
@chrisfritz7545
@chrisfritz7545 10 месяцев назад
Holy @$@#$! thanks. This is so helpful. Please continue making these tutorials, always useful. Maybe you could do one for gamepad controls?
@oscarrichardvaldez
@oscarrichardvaldez 6 месяцев назад
Excellent tutorial !! Please make some sequels !! 👍👍
@Wackt-p3vidgame_tfnafp3d.
@Wackt-p3vidgame_tfnafp3d. 3 месяца назад
Coool""
@LittleStupidGodoter
@LittleStupidGodoter 3 месяца назад
I tell everyone Lukky makes the best & most understandable videos. And this is the fcked independent opinion))
@kingtrigon
@kingtrigon 7 месяцев назад
hey its the goat
@GregX999
@GregX999 10 месяцев назад
I know, late comment, but I'd love to see a tutorial on how to add collision detection (hit/hurt box?) to the kick, so kicking a "target" would knock it back/over, and kicking a wall would maybe knock the player back or interrupt the animation.
@yanchobeats
@yanchobeats Год назад
Awesome, can you show us the 3rd person project you are working on?
@SoulGuitarMetal
@SoulGuitarMetal 11 месяцев назад
There is a jitter/shake when colliding with the boxes. That's because the floor is too wide causing imprecision in the physics engine. We have to subdivide the floor in smaller pieces or use WordBoundaryShape instead.
@yarop1794
@yarop1794 9 месяцев назад
A quick fix is to switch the collision shape to a capsule but it will still jitter once in a while.
@alanzulwas920
@alanzulwas920 Год назад
nice
@sumibanerjee7801
@sumibanerjee7801 Год назад
Love ur content bro Just one question How do you fit all the animation in one base? I tried a lot but I can't do it (I can download all the animations seperately though) Again,love ur content❤❤❤
@Manish_Dev.
@Manish_Dev. 2 месяца назад
Please make videos on Godot tutorial like this ❤
@thricemindblown7883
@thricemindblown7883 8 месяцев назад
32:05 - To contribute a bit, instead of the if !animation_player.is_playing(): unlocking fix, I did an "await" coroutine on the kick function. It goes.... animation_play("kick") locked = true await get_tree().create_timer(1.5).timeout locked = false ....which, to me, seems a bit more un-glitchable (perhaps debate-ably compared to a dedicated timer and/or state machine but this way fulfills one thing at a time principles).
@AlanDarkworld
@AlanDarkworld 9 месяцев назад
That was a great explanation! I did 3rd person controllers in a couple of engines and it was always a major pain, but this looks great! What would it look like if we combined this with animation trees, state machines and animation events?
@nirodha7028
@nirodha7028 5 месяцев назад
Love your tutorials! Have also looked at and recreated the first person player you showed in another video. Now I want to combine them. Make it possible to switch between third and first person view with the same player by scrolling in and out with the scrollwheel on the mouse… How would that work I wonder. Simply have the camera change location relative to the player upon that scrolling action with a script? (Within a certain range ofcourse)
@dr_UiD
@dr_UiD 6 месяцев назад
Oh my god. I found just golden bubble of godot content, i hope godot will become next blender for game industry. Open source rules🤟
Далее
Making a Game from Start to Finish ( Tutorial)
11:19
Просмотров 19 тыс.
I Made the Same Game in 8 Engines
12:34
Просмотров 3,9 млн
Why Do Video Game Studios Avoid Blender?
6:49
Просмотров 339 тыс.
Immersive Sim in Godot 4: COGITO - Overview
8:22
Просмотров 33 тыс.
Why GODOT 4.3 is going to be wild!
9:50
Просмотров 119 тыс.
These Viewer Made Projects Are Insane!
8:04
Просмотров 27 тыс.
How To Make A Game Alone
16:44
Просмотров 218 тыс.
Godot 4 / Blender - Third Person Character From Scratch
57:33
Godot 4 Easy First Person Animation! (2023)
46:25
Просмотров 57 тыс.