Projects > cpp > Issues > Feature #2501

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Adding a method to get duration of timeline for CCBAnimationManager class

Feature #2501 [Closed]
dumganhar 2013-08-08 02:34 . Updated over 10 years ago

Refer to


It's common case to check whether a timeline exist by name; So CCBAnimationManager::getSequenceId should be public;

Adding the CCBAnimationManager::getSequenceDuration method to get duration of exist timeline is pretty usefully when we make our animation all with cocosbulder.

Yes, there already is a method CCBAnimationManager::getSequence(int nSequenceId), then we can call CCBSequence::getDuration to get that info. However, CCBSequence is not binded for JS, we need a more simple interface to get that info for JS.
dumganhar 2013-08-08 03:36
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:f644641474708b474e1069a3ee623f29f3c87194.

Atom PDF

Start date:2013-08-08
Due date:
% Done:


Target version:3.0-alpha0