Тёмный

Godot 3D - Basic Character Controller | Character Animation Tutorial: 5 

Bonkahe
Подписаться 3,5 тыс.
Просмотров 4,4 тыс.
50% 1

Today we're going to be going over a basic character controller, as well as tying it into the animation tree, and getting it to have nice smooth transitions, I'm looking forward to being able to go over transitions and blend controls.
AnimationTree Docs: docs.godotengine.org/en/stabl...
Github: github.com/Bonkahe/GodotEduca...
Godot: godotengine.org
- timestamps -
00:00 - Intro
00:20 - Setting up the Scene
02:25 - Programming the Camera Controller
06:04 - Implementing and Testing Camera Controller
06:41 - Updating and Implementing GDScript Character Controller
09:02 - Updating and Implementing C# Character Controller
11:08 - Creating and implementing a GDScript Smooth Movement Direction Blend
12:17 - Creating and implementing a C# Smooth Movement Direction Blend
13:40 - Testing and Wrapping up Thanks for Watching!
Thank you all so much for the feedback and contact, as well as just general interest in these videos/projects, I'm really really excited to show my next hermit video, I'm hoping to have it out at 2pm CST Saturday, I do hope you will all join me for it, I might even set it to premier so I'll be there at the listing of it.

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

 

15 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@davidb1191
@davidb1191 6 дней назад
No entiendo como estos videos no tienen más visitas. Claramente el algoritmo de RU-vid no funciona. Gracias por los tutoriales.
@Bonkahe
@Bonkahe 6 дней назад
Lol Muchas gracias por tus amables palabras, me alegra que los videos hayan resultado tan útiles~
@MrXSharing_is_caring
@MrXSharing_is_caring 8 месяцев назад
OMG WHY I ONLY FIND YOU NOW 😭 thank you very much!!
@Bonkahe
@Bonkahe 8 месяцев назад
Lol thank you so much for the kind words!
@guilhermenascimento8250
@guilhermenascimento8250 11 месяцев назад
Your videos are really great, specially this both gd and cs code split view, really amazin 🛐🛐
@Bonkahe
@Bonkahe 11 месяцев назад
Thank you so much for your kind words! I'm glad it's helpful~
@D.E.Nicolas.Goncalves
@D.E.Nicolas.Goncalves 4 месяца назад
This blend between animations, Thanks! Helped a lot!
@rodolphoa.marinho2598
@rodolphoa.marinho2598 3 месяца назад
Thank you a lot for this tutorial! Creating smooth animations for movement in four directions has been a struggle for me.
@Bonkahe
@Bonkahe 3 месяца назад
I'm glad it was helpful!
@yvanvan3729
@yvanvan3729 Год назад
Thanks you for making this video. Have a wonderful week too.
@Bonkahe
@Bonkahe Год назад
My pleasure! I actually just finished the rendering on the video for this weekend, and I'm uploading it, so I'll be back a little sooner rather than later this time.
@belgbeladel
@belgbeladel 3 месяца назад
Quality stuff !!
@owenlloyd2528
@owenlloyd2528 7 месяцев назад
Thank you
@da_cat
@da_cat 10 месяцев назад
Lol i'm so dumb, i used a 1D blendspace for my 3d game because im lazy and then afterwards i spent 20 minutes trying to figure out why my animations are not working lol. Switched to 2DBlendSpace and now it's working. Thank you very much😅
@Bonkahe
@Bonkahe 10 месяцев назад
I'm so glad you got it working! Keep up the good work, and thank you for the kind words, I'm glad I could help.
@leoscave6728
@leoscave6728 6 месяцев назад
I used this for my character first person movement. It's very nice! I wonder if I can make it work on a separate camera layer. Thank you for the free help!
@herbert9039
@herbert9039 9 месяцев назад
Hey David, great Video! Can you maybe weigh in on this decision I'm facing: Do you think using C# in Godot is worth it right now? I'm thinking about moving my top down game with an advanced ability/spell system over from Unity, and I'm thinking about using GDScript, because it might help me with writing simpler code. But I'm not sure if things like refactoring and lack of interfaces & abstract classes will bite me in the ass...
@Bonkahe
@Bonkahe 9 месяцев назад
Thank you so much! Now in normal circumstances I would say go with what you enjoy, either way you'll be able to get it done, but in this case I would actually recommend you go into C# specifically. Reason being is that the way you structure scripts when having interfaces, (or I assume structs in your case for the abilities/spells) is a little hampered by the gdscript style, not to say you can't do it, but for example in my latest series (FPS Horror one) I had to create a "Limb" enum, in order to have this enum usable from multiple scripts I had to put it into another script file, and then reference it like "LimbScript.Limb.RightHand" etc, it's a little bit obtuse when using it in that style. Now this down side can be alleviated by a restructuring of how you have things working, like instead of having a different inherited interface for each spell and having them housed in the control script as objects, you could have them each be assigned a new node, and be children in the scene, and the control script contains a list of all the children nodes, being all the available spells, and when you learn another it just adds the packed scene for the spell as a child. But yeah, with having an already complex/semi complete spell system in C#, I would personally recommend you move straight to C#, but of course you can also do other options, I wish you the very best of luck, and would love to hear back with whatever you're decision was and how it went.
@herbert9039
@herbert9039 9 месяцев назад
@@Bonkahe Thank you for the detailed answer! I'll try to remember to update you if I make interesting progress with this
@teddybonzo8460
@teddybonzo8460 4 месяца назад
Iam having an issue with this, when i run scene the blendspace2d doesnt seem to be running the animation at all, been uaving this issue for 2 days now thought i could solve it, i cant
@peanut5934
@peanut5934 Месяц назад
hey pal you resolved it I'm having the same issue
@daniloB225
@daniloB225 8 месяцев назад
hey man great video, but my currentVelocity is not going all the way to 1 or -1 when moving diagonaly, so animation are not reaching their fullness. when I print currentVelocity, it show going only to 0.70 or -0.70.
@Bonkahe
@Bonkahe 8 месяцев назад
Hmm, so I believe your correct, I *Think* the ".Normalized()" at line 87 C# (line 66 of GDScript) is the culprit, I'm going to investigate this real quick and then come back to you, but if you don't hear back from me try removing that and see if that resolves your issue. Sorry about that! EDIT: So I got it I think, remove the Normalized at line 93 C# (71 GDScript) and add a ".LimitLength(1)" to line 94 and 72 respectively. That being said under normal circumstances this is not something you would ever have too much of an issue with, as the rotation speed will normally rotate the body towards the movement vector fast enough it wouldn't matter, but I assume your doing stuff with your character that requires it to look good~ Best of luck with your project!
@glxxm
@glxxm 2 месяца назад
I've followed along and watched this over about 3 times, but no matter what I do, no animation plays when walking/moving. He just idles and slides around :\
@DavidColgate
@DavidColgate 2 месяца назад
I've just run into this as well and realized that transition speed is acting differently for me than in the tutorial. Try cranking that up and/or printing your currentVelocity to monitor whether it's changing or not.
@Bonkahe
@Bonkahe 2 месяца назад
So sorry for the delayed response, been a bit hectic around here, @glxxm, did David's recommendation work? if not you can always hit up someone/or me on the godot official discord for some help, that seems like a pretty solvable problem. Also thank you so much @DavidColgate for helping out! Sorry for the confusion, not sure why that's happening but I will say I encountered similar issues and I think some subtle things changed on the math in the back end of the animation tree with recent updates, no clue what though.
@OrionPhilosophy
@OrionPhilosophy Месяц назад
@@Bonkahe I has something similar and, after printing the current input var, it was because the current_input was staying at (0, 0) for the Vector 2. it could be because you didnt change the var on line 29 and 30 at time 8:23. Also, thanks for your tutorials, they're extremely helpful.
Далее
Boots on point 👢
00:24
Просмотров 5 млн
10 Minutes vs. 10 Years of Animation
19:29
Просмотров 655 тыс.
How I Made a 3D Platformer in 2D Game Engine
21:23
Просмотров 447 тыс.
10+2 AWESOME ADDONS for GODOT 4
8:36
Просмотров 129 тыс.
Why You Should Not Use Godot: 5 Reasons
7:38
Просмотров 223 тыс.