• Editor
  • Animation changed

  • Düzenlendi
Related Discussions
...

How to know exactly new animation drew first time after using addAnimation() function in runtime.

In spine-libgdx AnimationState has a listener you can use.

I'm using cocos2d-iphone runtime

You can user a timer to run a task after a delay. You can use animation.duration to delay your task. You could also use animationState.animation.duration - animationState.time which would give you the remaining time for the current animation in the AnimationState.

When I implement events for cocos2d-iphone I will probably have a callback mechanism similar to spine-libgdx.