A Godot demo to show how to apply AnimationPlayer/Tree to your player
How to use
Add one of the player.tscn to the scene.
WASD to move, SHIFT to run, F = Attack, C = Crouch, Space = Jump
Player Info
Player_inputs.tscn = AnimationPlayer on key pressed without movements
Player_movements.tscn = AnimationPlayer with movements
Player_blendstatemachine.tscn = AnimationPlayer/Tree with AnimationNodeStateMachine
Player_blendtree.tscn = AnimationPlayer/Tree with AnimationNodeBlendTree
Check out the codes to see how each one works.