Godot 4.4.1
Question
I tried to animate my player idle but it not work at all
here my player script
extends CharacterBody2D
@export var move_speed : float = 100
@export var starting_direction : Vector2 = Vector2(0.0, 1.0)
@onready var animation_tree = $AnimationTree
func _ready():
animation_tree.set("parameters/idle/blend_position", starting_direction)
func _physics_process(_delta):
# set input direction
var input_direction = Vector2(
Input.get_action_strength("right") - Input.get_action_strength("left"),
Input.get_action_strength("down") - Input.get_action_strength("up")
)
velocity = input_direction.normalized() * move_speed
move_and_slide()
here is my animation tree
and my animation i it should play