Hey everyone,
I'm trying to do pixel art 2d animations in Godot with the AnimationPlayer as suggested by many. I have multiple sprite sheet for the different states of the character (idle, walking, running, attacking) and I'd like to handle everything in a single AnimationPlayer node.
To do this, in each animation, I keyframe texture, vframe and hframe so that each animation can have its own texture.
It seems to work great, except for 1 (big) problem: whenever I'm switching animation (via code or in the animation editor) between two anims that use different textures, on change, for a split second, the new texture get set with a frame of 0 (which isn't part of the animation itself).
So each time I switch, I always see the frame 0 for a split second and then the animation plays correctly, which makes it unusable this way.
I cannot find any info about using multiple sprite sheets in a single AnimationPlayer other than this way.
The only real solution I see is to merge everything into a single texture and simply don't change that on animation but that kinda defeats the purpose of having anything keyframeable.
Any suggestion?
example of the problem with a spritesheet taken online: https://imgur.com/a/YyHeN