I'm relatively new to Godot (coming from Unity) and I've been scratching my head over how to get this working properly. I'm trying to pause and resume an animation dependent on whether the player is moving or not.
The sprite sheet I'm working with only has a walking animation. No idle animation. I have the walking animation setup using a
Sprite (holding the sprite sheet),
AnimationPlayer, and an
AnimationTree. On the
AnimationTree I have a
BlendSpace2D named 'Walk' that I'm using to control the walking animation/direction of the sprite based on parameters.
Right now I'm able to 'pause' the
animationTree.Active = false to successfully stop the walking animation, but when I try to resume the animation using
animationTree.Active = true it just seems to restart the entire animation over from the start. I'm looking to resume the animation on the last frame it left off on instead of restarting it entirely.
Is there a different method I could use to accomplish this?