Hi all! i am having some trouble trying to set up an animation tree to work and was after some help... my problem is the animations do not appear.
var statemachine
func _ready():
statemachine = $AnimationTree.get("parameters/playback")
func _physics_process(delta):
var current = statemachine.get_current_node()
if Input.is_action_pressed("right"):
motion.x += ACCEL
facing_right = true
statemachine.travel("Run")
(there are other animations but i cut out the fat and just included one for your sake.)
thanks!
UPDATE
i added statemachine.start("Idle") after _ready() and that did it. only issue now is the animations are glitching out... probably need some tweeking but made progress.