So I have an AnimatedSprite with two animations, both 4 frames with 15FPS.
Say I want to suddenly change from animation A to animation B to the same exact spot, so that animation B would end exactly when animation A would have.
How would I proceed?
I can go to the same frame number like this:
var frame = player.AnimatedSprite.frame
player.AnimatedSprite.animation = "AnimationB"
player.AnimatedSprite.frame = frame
but even then the animation will take more gameplay frames than it should.
The AnimatedSprite frame value is int, so I can't access how far exactly the animation is between the frames.
I could do this in Gamemaker where the sprite's frame value was in float IIRC.
Is there a way to do this in Godot?