How can I detect time zero with a reversing animation?

You can also put a call method at the beginning of the sequence to detect when it reached to the beginning.

But you should note this about how Sequence works:

So as suggested above you can do it like this instead:

Tweens.sequence(invert(action), callMethod("doSomething");

and set speed = 1.

Note that Invert tween is added recently and will be available in the next release so for now you can just copy-paste it from the master branch or else you can build the engine from the source.

2 Likes