Home / Godot / G34

Godot error: SpriteFrames doesn't have animation '%s'. — cause and fix

Code or the animation player plays or looks up an animation by a name that does not exist

ID
G34
Engine
Godot
Verification
源码原文(scene/resources/sprite_frames.cpp:111)
Frequency
未公开

Original message (verbatim)

SpriteFrames doesn't have animation '%s'.

Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.

Trigger

Code or the animation player plays or looks up an animation by a name that does not exist in the SpriteFrames (mismatched spelling, animation not saved, or resource replaced).

Typical cause

SpriteFrames looks up the animation dictionary by name; on a miss it pushes this error and returns an empty animation.

Step-by-step fix

  1. Match the animation name in code exactly to the entry in the SpriteFrames editor.
  2. Confirm the animation is saved into the resource, not just previewed in the editor.
  3. Guard playback with has_animation before requesting the animation.

Source links

Per-entry sources and capture date are listed at /sources#G34.

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.

View Pro pack / order

Back to the all-errors index Checkout and buy the Pro pack — $19.00