Godot Version
Godot 4.2.1
Question
I’ve been getting this error when playing animations:
E 0:00:01:0294 _update_caches: AnimationMixer: 'playerWalkSide', Value Track: 'Sprite2D:texture' must have at least one key to cache for blending.
<C++ Error> Condition "anim->track_get_key_count(i) == 0" is true. Continuing.
<C++ Source> scene/animation/animation_mixer.cpp:659 @ _update_caches()
Code:
func _physics_process(delta):
velocity = Vector2(0,0)
if Input.is_action_pressed("left"):
velocity.x -= speed
$Sprite2D.flip_h = true
$AnimationPlayer.play("playerWalkSide")
lastKeyPressed = "left"else:
$AnimationPlayer.stop()
# Other if statements
else:
$AnimationPlayer.stop()
From what I read from the error, I might be missing something relating to cache, though I am unsure on what that is. How can I fix this?
(P.S. It’s my first forum post, sorry for any missing necessary information and other mistakes.)