Тёмный

Godot Third Person Control - Animation Blend 

Johnny Rouddro
Подписаться 4,9 тыс.
Просмотров 42 тыс.
50% 1

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

 

24 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@TranquilMarmot
@TranquilMarmot 5 месяцев назад
Quick tip for when setting up the BlendSpace2D at 2:37 ... You can set the diagonal node positions to 0.707107, 0.707107 (aka Vector2.RIGHT.rotated(PI / 4).normalized()) and then normalize the input values. That way the diagonals are more accurate. I have it using the velocity of the character normalized. I find that putting the diagonal nodes in a normalized spot leads to better blending results.
@sw97058
@sw97058 7 месяцев назад
For anybody trying to make this in Godot 4, when using set() on a transition node, it's not $AnimationTree.set("parameters/aim_transition/current", 0), but rather $AnimationTree.set("parameters/aim_transition/transition_request", "aiming")
@sturgiz3
@sturgiz3 5 месяцев назад
Your video continues to help. Had a problem with the Blendspace2D, your video helped me solve it, thank you mate!
@JohnnyRouddro
@JohnnyRouddro 5 месяцев назад
Glad to help 😊
@creka2897
@creka2897 2 года назад
This is one of the best tutorial series ive come across. You explain everything and it makes a beginner like me easily understand how this godot system works
@mirageowl
@mirageowl 3 года назад
This series is especially great for people who know other game engines and basics of godot to translate their skills to godot. Very concise explanations, doesn't waste anytime and gives you the information you need. Thanks for the great videos!
@PaladinHD
@PaladinHD 4 года назад
Thanks so much! This was just the tutorial I needed.
@JohnnyRouddro
@JohnnyRouddro 4 года назад
Thanks 😊 Glad I could help
@marvegomes
@marvegomes 4 года назад
Man, you're great, amazingly great!
@JohnnyRouddro
@JohnnyRouddro 4 года назад
Thank you 😊
@TranquilMarmot
@TranquilMarmot 5 месяцев назад
Cannot thank you enough for this video! It really helped me understand how to use BlendSpace2D. I was trying to do crazy stuff with IK to get the legs turning correctly and was getting nowhere, this makes a lot more sense 😅
@Hemoplaguer
@Hemoplaguer 3 года назад
God damn! Hell yeah! MORE of this kinda content.
@nagavarmanr5063
@nagavarmanr5063 4 года назад
Nice work bro you made my work very simple
@JohnnyRouddro
@JohnnyRouddro 4 года назад
Thanks 😊 I'm glad to be of help.
@travh98_
@travh98_ 8 месяцев назад
Super helpful, still works in Godot 4! Thank you!
@warrenbuitendag5286
@warrenbuitendag5286 4 года назад
hey johnny these videos are pure gold, godot can only go from strength to strength as more people learn to do code game mechanics like this! Also am i the only one who loves the in-editor XYZ gizmo that looks exactly like blender :)
@nincompoop17
@nincompoop17 3 года назад
Ah man this is fantastic, thank you so much for this gold!
@BojanDam
@BojanDam 4 года назад
Great stuff! Keep them rolling.
@JohnnyRouddro
@JohnnyRouddro 4 года назад
Thank you 😊
@abhishek-farswan
@abhishek-farswan Год назад
in case anyone is looking for solution why it's not working for GODOT 4 here you can implement // if Input.is_action_pressed("Aim"): Anim_tree.set("parameters/Aim_Anim/transition_request", "Aiming") else : Anim_tree.set("parameters/Aim_Anim/transition_request", "Not_Aiming") //
@dbm212
@dbm212 Год назад
how did you get it to work,? The animations are still not playing for me
@abhishek-farswan
@abhishek-farswan Год назад
@@dbm212 which part of animation is not working? Some part of code has changed in godot 4
@calvin6906
@calvin6906 Год назад
Awesome stuff, thanks for the great tutorial
@barrynevio4440
@barrynevio4440 3 года назад
Amazing tutorial series, only issue is at 1:31 where you say "save all the individual animations". Not quite sure how you did that. Been googling around for the right way to do that, I'll figure it out eventually. EDIT: aha! For anyone else, here's how to save the animation: double click your model's .glb file, click "open anyway", click the AnimationPlayer, select the animation. Click on the button labeled "Animation" next to the drop down that selects the animation and click "Save As".
@creka2897
@creka2897 2 года назад
Aw god thanks man. Glad i checked the comments first xD
@thomasamathew4058
@thomasamathew4058 2 года назад
Thanks man
@sw97058
@sw97058 7 месяцев назад
Thank you so much!
@diosupremo4928
@diosupremo4928 2 года назад
best tutorial in godot! thank you!
@gamert2525
@gamert2525 4 года назад
Nice Keep it up bro
@JohnnyRouddro
@JohnnyRouddro 4 года назад
Thank you 😊 Subscribe and help Godot grow
@corcodilee
@corcodilee Год назад
Thanks! This really helped me alot
@salvadorm7564
@salvadorm7564 3 года назад
Great tutorial, thank you!
@alvinmrobles
@alvinmrobles 3 года назад
You're awesome dude
@bisquestudio
@bisquestudio 2 года назад
thank you very much your tutorial is very helpful
@ArtER21
@ArtER21 4 года назад
A very helpful tutorial with lots of good information. I am stuck on the blend 3 for idle walk run , idle to walk blends fine but for some reason walk to run and run to walk cause my player to dance. I make all my own assets but find myself stumped on making the animations work well in the blendtree. would be nice to see you do a video talking briefly on making the walk run cycles.
@StickyLabDev
@StickyLabDev 11 месяцев назад
best
@JoaoMarcos-pq6ev
@JoaoMarcos-pq6ev 3 года назад
When I "aim", the blendSpace2D doesn't play animation and the player only moves in the direction of the camera. WHY??????????
@vikramthewrench
@vikramthewrench 3 года назад
i just clear the animation player, and assign it again, than click on active its start working
@Made-By-Mercy
@Made-By-Mercy 5 месяцев назад
Hi, this video is exactly what I was looking for! I have a question. Currently I have my animations attached to my model from blender, and want it to be separated in an animation folder like you have in your video, because I directly experienced the turmoil of having to reimport after a change. How do I separate my animations from the model?
@Made-By-Mercy
@Made-By-Mercy 5 месяцев назад
I think I figured it out. Clicking "Animation -> Manage Animations" and saving each animation saved in my character as .tres files. How say would I add a new animation I made in blender to this folder as well?
@JohnnyRouddro
@JohnnyRouddro 5 месяцев назад
You can try blender's ESCN exporter to only export animations, although I haven't tried it. But it looks like it should work. Here's the doc: docs.godotengine.org/en/stable/tutorials/assets_pipeline/escn_exporter/animation.html
@Made-By-Mercy
@Made-By-Mercy 5 месяцев назад
@@JohnnyRouddro Thanks! I'll give that a look.
@Made-By-Mercy
@Made-By-Mercy 5 месяцев назад
For those who are looking for a solution on this in the future, I found a pretty fast way of doing it. Import the model into Godot again with your new animations on it. Click "Reimport -> Actions... -> Set Animation Save Paths". From here select the destination folder of the animations, and on the next screen, checkmark each animation you want to save! I then just delete the model. There might be faster way of doing this, but this is what I found as a day 3 noob 😂
@JebacPresretac101
@JebacPresretac101 Год назад
Thanks, I had to learn how to use Transition, this was useful, settings hidden in the AnimationNodeTransition's inspector...
@michaelplaczek9385
@michaelplaczek9385 3 года назад
Amazing
@jotasantos9398
@jotasantos9398 3 года назад
I began to follow this tutorial until the part of Blend3 node, I used a character without aiming animation and when I put the script for choose animation their not changing, the player no has aiming animation, any idea about happens?
@AnwerDulia
@AnwerDulia 4 года назад
nice bro
@JohnnyRouddro
@JohnnyRouddro 4 года назад
Thank you 😊
@lma_cristian
@lma_cristian Год назад
Muy bueno
@Wodsobe
@Wodsobe 3 года назад
for some reason this Input.is_action_just_pressed isnt working, anyone know why? if Input.is_action_just_pressed("Aim"): if aiming != true: aiming = true else: aiming = false edit: I put "paremeters", not "parameters"
@agentsmith1460
@agentsmith1460 3 года назад
It should be if Input.is_action_pressed("Aim"): instead of if Input.is_action_just_pressed("Aim"):
@Made-By-Mercy
@Made-By-Mercy 5 месяцев назад
Sorry to bother again, but I have another question 😭. I want to implement startup and stop animations, like: idle - [w pressed] > walk_startup -> walk-loop - [w released] > walk-stop -> idle. that diagram is pretty bad in comment form but hopefully makes sense. Is there any point of doing this when you have blendspaces? I was just thinking having a handmade smoother transition from idle to a movement startup and then the loop would look better. I intend on using blend2's for transition between walking and running, and potentially a blend of some sort to make the idle -> start walk -> walk sequence look more fluid.
@JohnnyRouddro
@JohnnyRouddro 5 месяцев назад
no worries 😄 I think for this a state machine would be better choice. You can have walk_startup automatically transition to walk-loop, and walk-stop auto transition to idle. and for manual transition, w pressed goes to walk start, w release goes to walk stop. Although this is difficult saying without my hands getting on the engine, but it should work.
@Made-By-Mercy
@Made-By-Mercy 5 месяцев назад
@@JohnnyRouddro THANK YOU SO MUCH!
@mamelloraboroko3645
@mamelloraboroko3645 2 года назад
Great tutorial series. Animations work fine, but my character's torso is stuck in the T-pose. I was thinking "Edit filters would help, but that option is only in the "OneShot" node. Any advice?
@ohalohuntero
@ohalohuntero 3 года назад
My roll animation keeps looping for some reason. I have unchecked looping in the AnimationPlayer and ticked 1shot on the timer. Any ideas? I am using the "sprinting forward roll" from mixamo
@AINedu
@AINedu Год назад
crouching animation is not in the download github link, is there any reason for that?. Your videos are really helpful, thank you!.
@ivanonlyone7160
@ivanonlyone7160 2 года назад
what program are you use in the beginning of the video for drawing giagrams?
@dee_ooo1413
@dee_ooo1413 Год назад
Hi, I am following this tutorial in godot 4. for some reason I can not get the aiming or sprinting to work. No errors, but is there a newer way to get,(parameters...) == 1 and /or set. parameters in this version?
@dee_ooo1413
@dee_ooo1413 Год назад
NVD got sprinting to work. Still cant get aim to work
@robyplavara3078
@robyplavara3078 3 года назад
is any way to contol the animation using controller.. (example:- character hand rising followed by the analog stick )
@the-birbo
@the-birbo 9 месяцев назад
Project -> Project Settings -> Input Map -> [+] (add event to the action you want to control with the controller) -> (click the button you want to assign or scroll and find it in the list )-> [OK]
@raiderx1240
@raiderx1240 4 года назад
Hey i actually wanted to put some rotating animations where the camera would look(when idle, strafing) in place of that straight forward rotate can u just give me some tips thank you
@JohnnyRouddro
@JohnnyRouddro 4 года назад
If you're talking about 9:20 you can expand the y range of the blendspace for strafe animation and add points for your "rotate_right" and "rotate_left" animations far away from the strafe right/left animations. for example, rotate_right in (0, 2) and rotate_left in (0, -2). and in the code add 1 to the direction vector when rotating. You can use IK if you want the head to look towards camera direction. IK is very simple to implement, I covered an implementation here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--JMKR2sjlkY.html
@Wodsobe
@Wodsobe 4 года назад
dang, its that easy?
@JohnnyRouddro
@JohnnyRouddro 4 года назад
haha. yep 😊
@sanyi9667
@sanyi9667 3 года назад
is there a reason why you don't use root motion?
Далее
Finding the Best AnimationTree Strategy
44:43
Просмотров 3,5 тыс.
Lets Look At | Godot 4 Godot Get Bone Animation!
14:21
JPEG is Dying - And that's a bad thing
8:09
Просмотров 569 тыс.
I Built a Transparent Boomerang (it's lethal)
13:10
When AI Plays Wordle..
21:49
Просмотров 41 тыс.