How To Use AnimationTree In Godot 4.2+ In 12 minutes

  Рет қаралды 9,362

Coding Quests

Coding Quests

Күн бұрын

Пікірлер: 32
@xTriplexS
@xTriplexS 5 ай бұрын
Great tutorial! Never thought I'd miss Unreal's transition rules. Never done it in code actually, so this was refreshing
@mrserlysir
@mrserlysir Ай бұрын
Hey I really hope you read this, but something that I think could really help this tutorial is understanding how to set parameters through code. Because I had to scour the docs (Godot 4.3 docs) to understand the string path to the parameters. You can see the parameters being passed by looking at the parameters inside the inspector and hovering over the parameter in question. This really through me for a loop because in code it doesn't error when you have the wrong path to set the parameter in question (a very big oversight imho). Then it's not obvious from the editor where to get this information. That's the primary reason why I watch youtube videos is to see how people are using the GUI of these game engines and see where I'm going wrong. Really important info
@CodingQuests
@CodingQuests Ай бұрын
Thanks so much for the detailed feedback! 🙏 I totally get what you mean-finding the exact string paths for parameters in code can be tricky, especially since Godot doesn’t throw an error when the path is off. I’ll make a note to highlight this in future tutorials, showing how to use the Inspector and hover tips to find the right paths. I know that visual cues in the editor can really make or break the learning process, so I’ll make sure to dive deeper into that in upcoming videos. Thanks again for sharing this; it’s super helpful for me as well as other viewers! 😊 Let me know if there’s anything else you’d like me to cover!
@floperetti
@floperetti 4 ай бұрын
I removed the looping for the attack animations and I was still having issues. I printed the animation names at the start and end signals of the animation tree and saw that the idle animation was being fired immediately after the attack, cutting it. So I changed in the animation tree "Auto" to "Disabled" in "Advance mode" in the Attack node of (the arrow UI), that fixed it
@phoxsillanpaa9889
@phoxsillanpaa9889 2 ай бұрын
If you're having the issue where the attack animation continues playing, it could be because your attack animations are still looping. There are three options in looping animations. There are two that look like swirly arrows, one where the arrows are blue, and one where they are not, And one that kinda looks like this |---| Don't use that one. Use the arrows that are not blue. By verifying this, I was able to get the AnimationTree Node to throw _on_animation_tree_animation_finished(anim_name: StringName). Godot 4.3
@ProjectEpochGaming
@ProjectEpochGaming 4 ай бұрын
i counted 4 separate, and meaningful clicks and a slight of hand ctrl+s within 2 seconds and all you said is " turn this off and see if it works"(with no explanation of what you clicked to turn what off) to a fluent user thats not a problem, first time user of this program and i had to watch the same 3 seconds back 5 times.... its going to take us HOURS to get through the video, it wont hurt you to slow the pace just a bit. its a BEGINNERS tutorial, not an intermediate or casual users tutorial.
@boswellsoccer
@boswellsoccer 6 ай бұрын
The AnimationTree signal doesn't work for me on Godot 4.2.2 (it never triggers), so I used a Timer with 0.55 wait_time that attack input starts. Using the timeout() signal, I turn attacking to false. The timer also doubles as a CD for attacking so it isn't even a workaround, but a different way to handle the situation with positive side effects.
@CodingQuests
@CodingQuests 6 ай бұрын
yeah for sure! thats a really creative solution. Good work!
@maheryrazafindralambo9679
@maheryrazafindralambo9679 3 ай бұрын
Hello there, do u happen to know how can I change the speed_scale in the new animation_tree?
@trapdoort3297
@trapdoort3297 6 ай бұрын
Hey while this tutorial is great I feel I might be a bit lacking, as I followed along but once my player attacks it can no longer move and I get an error stating "AnimationNodeStateMachinePlayback: parameters/playback" essentially telling me its cutting the animation as a result detecting one or more looped transitions. I double checked to see if I left anything on loop but I haven't so I'm unsure where I've mistepped. Does anybody have any idea where I went askew?
@boswellsoccer
@boswellsoccer 6 ай бұрын
See my comment. You are probably having the same issue I did where the AnimationTree signal never fires. Throw a print statement in that func and see if it ever prints. That's the fastest way to check a function gets called or not. You can also use the debug tool of course.
@trapdoort3297
@trapdoort3297 6 ай бұрын
@@boswellsoccer You Sir are a wonderful being. Thank you and that did put me on the right track to solving my issue. I do have to wonder what animation is looped that is negating the AnimationTree Signal from working as intended to begin with.
@boswellsoccer
@boswellsoccer 6 ай бұрын
@@trapdoort3297 I suspect it is the Attack to Idle Advance prop being set to Auto. It seems the engine views this as a queue and doesn't send the animation_finished signal after Attack because Idle is queued up. And Idle loops, which also disables the signal. Double womp
@Random4Logic
@Random4Logic 3 ай бұрын
for a 3D Character it seems completly different. First of all you need to create a "State Machine" Node in the AnimationTree Editor. Then you can create the state machine. I dont know where the state machine in this video comes from its not shown. also the .travel function seems to be somewhere else as the AnimationStateMachinePlayback does not have a function ".travel()": "anim_tree.get("parameters/StateMachine/playback").travel(...)" does not work
@Random4Logic
@Random4Logic 3 ай бұрын
ah there are different Tree Roots for the Animation Tree. That makes sense
@khlua4590
@khlua4590 3 ай бұрын
Hi, i just want to ask if you still need to multiply delta into velocity. To my knowledge, delta is already taken care by the engine for Velocity. That's the reason why you need 5000 speed to not move slowly, its because you essentially multiply delta twice.
@AJ-fw6pn
@AJ-fw6pn 6 ай бұрын
When moving down and attacking, the attacking flag is set to true, but does not play, and then not automatically turned off. When this happens, all movement is disabled, as expected. However, this issue does not happen with any other direction. Does anyone have any thoughts on what the issue could be? I saw the comment about using a timer, but I'd rather identify the issue with moving down and attacking as all other directions are working.
@kinnetik100
@kinnetik100 5 ай бұрын
For myself, I didn't realize that the looping toggle on the attack animations has more than just an "on" and an "off" setting, there's a third one as well, which I had accidentally selected. Fixed it for me once I noticed that.
@panwladca8800
@panwladca8800 7 ай бұрын
So you have to have all your animations set up in the animation player before hand ? This just gives more room to adjust details, animation flow etc? I wanna make sure I understand correctly. Say I want to make a beat em up style side scroller. I have "attack1" and I connect it to "attack2" same input different animation. Will this work to create a combo effect and then allow me to change the DMG value of the second attack ?
@CodingQuests
@CodingQuests 7 ай бұрын
if you want to use animtree, then yes. otherwise its up to you.
@panwladca8800
@panwladca8800 7 ай бұрын
@@CodingQuests thank you
@AKclub-wv5cq
@AKclub-wv5cq 7 ай бұрын
You are the best and you are successful 😀
@CodingQuests
@CodingQuests 7 ай бұрын
Idk if I'm successful yet but thank you 😂
@qingxian3870
@qingxian3870 7 ай бұрын
thank bro❤
@Tanjutsu4420
@Tanjutsu4420 3 ай бұрын
i cant get one tutorial to work in any context i don't get it doing this for weeks nothing works
@SEOmaster_real
@SEOmaster_real 7 ай бұрын
You life saver❤ tnx bro
@Amipotsophspond
@Amipotsophspond 7 ай бұрын
so basically godot made it really really easy to make a state machine so long as you use the animations to do it, lol.
@CodingQuests
@CodingQuests 7 ай бұрын
not exactly no. bcuz state machines are controlled through code as well. Youll see later on in the series what i mean :)
@vesogry
@vesogry 7 ай бұрын
Does someone have a good explanation for AnimationTree: Animation Blendspace1d Blendspace2d BlendTree StateMachine Why use blendtree, instead of a blendspace2d or Animation for a top down 2d rpg?
@charlese40187
@charlese40187 5 ай бұрын
BlendSpace1D: Best for animations that vary along a single axis (e.g., walking speed) Smoothly interpolates between animations based on a single parameter BlendSpace2D: Ideal for animations that depend on two variables (e.g., movement direction and speed) Allows for more complex blending in a 2D space BlendTree: Offers the most flexibility for complex animation logic Useful for creating custom blending behaviors and hierarchical animation structures StateMachine: Perfect for distinct animation states with clear transitions (e.g., idle, walk, jump) Provides a clear visual representation of animation flow and logic Choice depends on the complexity of your animations and the number of variables affecting them. StateMachine is great for overall animation control, while BlendSpaces and BlendTrees offer more nuanced blending within states.
@ProjectEpochGaming
@ProjectEpochGaming 4 ай бұрын
please slow your mouse cursor down. you move it SO MUCH i cannot keep track. i literally have to slow playback to .5 speed to see where youve clicked half the time. take your damn hand off the mouse while you talk. its like following a schizophrenic mouse down a hallway of mirrors.
How To Use Stack Animations In Godot 4.2+ In 15 minutes
14:59
Coding Quests
Рет қаралды 2,5 М.
Why Animation Trees in Godot 4 are Unbelievably Useful
7:28
Bitlytic
Рет қаралды 20 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
The 5 Stages of Learning Blender
3:14
Artin Azarnejad
Рет қаралды 282 М.
Why I Ditched Godot For Unreal Engine
9:04
AueSip
Рет қаралды 15 М.
Do THIS Before You Publish Your Godot Game
3:33
StayAtHomeDev
Рет қаралды 191 М.
You're missing out if you don't use these in Godot 4
10:49
MrElipteach
Рет қаралды 10 М.
Watch this before using AnimationTree
8:39
Fair Fight
Рет қаралды 6 М.
I Made a Wave Function Collapse Castle Generator in Godot
25:30
RachelfTech
Рет қаралды 79 М.
Custom Resource are a MUST KNOW in Godot | Complete Tutorial
32:10
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН