Animation '' doesn't exist

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sven

Hello,

i have a few Sprites animated with AnimationPlayer. Every time i instantiate one of these scenes my debugger complains about “Animation ‘’ doesn’t exist”. However everything works as intended. I double checked my animations but all of them start at t(0). Maybe you have an idea. Thx!

2 Likes
:bust_in_silhouette: Reply From: Sven

For anyone interested:
It took me some time but now i can tell what happened:

I created an AnimatedSprite2D. It’s empty because it’s only there to be inherited by other scenes. Before the heridity i once added some Sprite Frames and a default animation. After implementing inherited scenes i deleted the “default” animation at the bottom SpriteFrames tab. But i forgot deleting SpriteFrames at the inspector.

Now after every start it flooded me with the error described above.
After clearing SpriteFrames at the inspector tab it gives me another error:
E 0:00:00:0377 set_animation: There is no animation with name ‘’.

For some reason he still tries to load some animation…

To resolve this simply once again click on “New Sprite Frames” and clear them again. Now it works.

4 Likes

Hello, I got the same issue and to resolve it, in my case it was because I didn’t use RESET track on “frame” and “animation” properties.

Hope it will help someone ^^

3 Likes

Man, you saved my life!

What a Chad! Thanks

I know this is a closed thread, but I want to add some useful information about how to fix it.

In my case, when I create another AnimatedSprite3D and SpriteFrame resource, then create/assign/delete the animation in SpriteFrame in specific order then instance() the AnimatedSprite3D in seperated scene, the error occurred. Once it appearred, it will keep going forever even you delete all the sprite or resource.

To fix it:

  1. Use any text search tool to search that “bad”/“non existing” animation name in all *.tscn file in your project. In my case, I created an animation named “explosion” and deleted it, then the error started show everytime I run the project. So the search keyword for me is “explosion”.
  2. In one of the tscn file, such as main.tscn or player.tscn, you will find one line look like this:

    sprite_frames = ExtResource(“16_8l73k”)
    animation = &“explosion”
  3. This non-existing animation name is the root cause of the problem. Since you cannot delete it in Godot editor, you need change it from “explosion” (or whatever name it is) to “default” in your text editor.
  4. Save the tscn file and reopen your project.

I reported the issue here:

But in case it migh be able to fixed soon, I also left the solution in this thread.