Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | WinterStep |
Note: If this is already known, I’m sorry for bringing attention to it. I didn’t see anything at first, so I assumed no one asked about it yet.
I first encountered the glitch around 5 or 6 days ago, which prompted me to ask this question. I originally believed this may have been my error, but now I’m not so sure. I began working on another inherited scene involving player projectiles, with the main projectile using an animated sprite. However, I encountered the same issue in my previous question, being that the animation could not be found. Which was strange because I copied and pasted the names into it. It only played the default animation.
When I closed and reopened it, the animations were gone. I remade them, but then I got the same error. So I decided to check if the animations were disappearing. I closed out again and reopened it and the animations were gone again.
I don’t know exactly what causes this, and the only real ‘fix’ I found is creating an entirely new Animated Sprite node instead of inheriting it. If anyone knows any other workarounds, or a way to keep the inherited node, please let me know.
Current Version: 3.2.2 Stable
Steps to repeat Bug as best as I could remember
- Create a new project or use a current one
- Create a scene. It must have an AnimatedSprite2D node
- Create a default animation using SpriteFrames
- Create an inherited scene from this scene.
- Create new animations in new scene (images or spritesheet doesn’t
seem to matter) - Create a new script (GDScript). Make it play one of the new
animations - Play in main scene or in test scene
- You should be getting an error that there is no animation of that
name - Close Godot
- Reopen Godot, and open the inherited scene.
- Check Spriteframes. All the new animations should have vanished
I ran into something similar in the Github game jam game I was working on. Actually almost the exact same scenario too. I’d recommend creating an issue on Github if you haven’t already.
Kyle Szklenski | 2020-12-04 17:59