Original message (verbatim)
There is no animation with name '%s'.
Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.
Trigger
Godot 4.x runtime: a script calls AnimatedSprite2D.play("walk") or set_animation("walk"), but the animation name does not exist in this node's SpriteFrames, or the SpriteFrames resource itself is unassigned; common when instantiating an external scene or the autoplay name does not match a defined animation.
Typical cause
AnimatedSprite2D::play / set_animation first checks whether frames are empty or get_animation_names().has(name) is false; ERR_FAIL_COND_MSG aborts directly and prints this message.
Step-by-step fix
- Check the SpriteFrames animation name spelling and leading/trailing spaces.
- Confirm a SpriteFrames is assigned in the node's Inspector.
- Call play only after the scene instance is ready.
- Keep the autoplay property name consistent with the name in the animation list.
Source links
- https://raw.githubusercontent.com/godotengine/godot/master/scene/2d/animated_sprite_2d.cpp#502
- https://docs.godotengine.org/en/stable/classes/class_animatedsprite2d.html
- https://docs.godotengine.org/en/stable/classes/class_spriteframes.html
- https://forum.godotengine.org/t/there-is-no-animation-with-name-run/59085
- https://forum.godotengine.org/t/animation-doesnt-exist/1289
- https://forum.godotengine.org/t/animatedsprite2d-animation-doesnt-exist/143325
Per-entry sources and capture date are listed at /sources#G01.
Related errors
Related Godot errors
Need an offline quick-reference checklist?
Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.
Back to the all-errors index Checkout and buy the Pro pack — $19.00