Animation working one way but not backwards

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lavialee

I am making an interactive inventory and I’m trying to have an animation which moves a hand across those items depending on what item is selected
.
I’ve made an AnimationPlayer with a Animated sprite node and right now I’m using a property track with frames mapped in the animation player (in the order of the hand “browsing” left to right) and a Call method for the animation player which has the stop(False) function keyframed twice (when the hand stops on the second item and on the third - the other stops are already handled since I have another scene with controls which dont loop).

This works nicely when moving right (the animation playing correctly) - with a ui input it moves to the stop.

But when I want to move left it has a delay (?) so if you press left or right again it skewes the animation in relation to the actual selected control.

I have no clue why this happens or how to fix it…

:bust_in_silhouette: Reply From: Jed Stevens

Check the animation length; sounds like you have a trailing end to your animation with no keyframes in it.