How to group animations in a state machine

Опубликовано: 01 Май 2026
на канале: Thomas Yanuziello
171
13

You have a character with a lot of different animations that you want to control with a state machine, but you don't want a tangled web of state transitions.You can keep similar or related animations grouped together inside nested state machines:Add a new state machine to your current state machine, and name it after what the animations inside all have in common. Add a transition into and out of this new state machine. Select the transition into the state machine and change its advance mode to enabled. Then select the transition out of the state machine and change its switch mode to at end. Next select the state machine itself and change its Type to Grouped. Then click on the pencil icon to edit it.Add whichever animations fit into this group, then precede them with a common start state and end state. Adding the transitions; upon entering the state machine to the start state, then to any of these animations, to the end state, and out of the state machine. Selecting each of the transitions into the animations, change their advance mode to enabled, and each transition leaving the animations, change their switch modes to at end.The state machine can now cleanly transition into any of these animations without cluttering the root state machine.

Patreon:   / tyanuziello  
Discord:   / discord  
Udemy
https://www.udemy.com/course/build-a-...
https://www.udemy.com/course/godot-ma...
Skillshare
https://www.skillshare.com/en/r/profi...

3D assets made by KayKit
https://kaylousberg.itch.io/kaykit-ad...