I’m trying to reverse an already running animation, but the onAnimationEnd event doesn’t get triggered in this case.
What I’m basically trying to do is add a button with an animation (move in with alpha fade in effect from side). This button can be clicked during the animation, and the animation should reverse at the current frame. But I also need to know when the animation is done.
My idea was to simply set the speedRatio of the animatable to -1, which seems to work, but the event isn’t triggered anymore in this case.
Here is a simple playground example:
At frame 120 the animation is reversed using an animation event. If you remove the line “animation.addEvent(animationEvent);”, the text in the center shows “Animation finished”.
Is this a bug, or do I have to do something else to accomplish this?