how can we count the time interval of the animation in cocos2d ?

Posted by srikanth rongali on Stack Overflow See other posts from Stack Overflow or by srikanth rongali
Published on 2010-04-03T06:15:37Z Indexed on 2010/04/03 6:23 UTC
Read the original article Hit count: 253

Hi, I am doing my program in cocos2d. I am using NSDate to get the current time of the start of animation. And I know my animation takes 3 seconds. So I can get the time at completion of animation by using NSInterval and using the previous time and animation time. But, if If the animation time interval is not fixed how can I calculate the time interval of the animation and time at the completion of the animation ? I am animating a sprite. Please help how can I make it. Thank You.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about cocos2d