In this video we go over the basics of Animation Trees in Godot 4. We rebuild a top down animation set with idle, run, and attack animations from simple to complex.
Animation Trees are unbelievably useful, and I use them all the time and would highly recommend using them yourself.
Discord - https://discord.gg/skPc32bUfA
Resources:
Character Sprite Pack by PixelBoy - https://pixel-boy.itch.io/ninja-adventure-asset-pack
Tileset by RGS_Dev - https://rgsdev.itch.io/free-cc0-top-down-tileset-template-pixel-art
Chapters:
00:00 Project Overview
00:14 Adding Animation Tree
00:34 BlendSpace2D
01:29 Controlling it through code
02:19 Switching to Animation State Machine
03:03 Adding Idle State
03:53 State Machine code
04:31 Expressions & Automatic Conditions
05:04 Attack State
05:37 Switching to AnimationNodeBlendTree
06:54 AnimationTree Active tips
07:11 Done :D