Animations Errors

Godot Version

4.3 stable official (Web Editor :/)

Question

Two animations I have, both of which I tested and in the animation player play seamlessly and perfectly, but when I start the game, one of them, an animation of the character drawing a gun when the game starts, stutters halfway through, I tried adding empty space and naming it delayed_draw in order to maybe let the system load as there is no menu screen yet and it would still stutter, and the other one is the firing animation, which for the first time firing once the game starts stutters once, by not playing and locking in a lower position (Which could be a code error), and once that happens for the rest of the game never happens. If I don’t find a solution I might resort to playing the animations hidden when the main menu is up, but having the game scene loaded during that seems like a bad idea. Thoughts on if it needs to be preloaded somehow or any other solutions?

It could be asset loading affecting the frame rate. You can print the delta values from _process() or _physics_process() in the animated thing and see if there are any large spikes in the values.

Personally, I wound up setting up a loading splash screen in my project that just displays a progress bar; otherwise, I had some serious stuttering here and there when big things had to load.

Yeah, having a splash screen rather than running it behind the main menu is a good idea that for some reason didn’t cross my mind, and I have a debug panel set up, so I’ll try printing the delta values, thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.