#Add animation tree to my character movement

1 messages · Page 1 of 1 (latest)

compact rain
#

This is my character movement code (top down 2d) and I was wanting to know how to connect this to my animation tree. Thanks.

past shuttle
#

Start by adding an animationPlayer node to your character. There you can create the animations by changing frames over time (assuming your game has Sprite2D's and a spritesheed), then, you can play those animations through code via:

$AnimationPlayer.play('Walk_N')

Just an example.

AnimationTrees are a bit more complex, but they are something that you put on top of the AnimationPlayer. It does not exist separately.