Animation strange behaviour

Animation strange behaviour
0.0 0


Hello guys,

I would like to know some details about animation making…

With this scenario:

CCAnimation animationForward = CCAnimation::createWithSpriteFrames;
forwardAnimation = CCAnimate::create(animationForward);

CCAnimation animationReverse = CCAnimation::createWithSpriteFrames;
reverseAnimation = CCAnimate::create(animationReverse);

CCFiniteTimeAction * headSequence = CCSequence::create(forwardAnimation,reverseAnimation, NULL);
The animationForward animation appears but the animationReverse do not.
As a side note, the reverseAnimation is the reverse version of forwardAnimation. I created this distinction because forwardAnimation~~>reverse() didn’t appear to do it’s job.

Any guess about why this is happening?

Thanks in advance :slight_smile:


If you place the reverseAnimation before the forwardAnimation in the sequence does the reverseAnimation work then? That code looks fine, I’m just wondering if the animationFrames were set up incorrectly?


Hello again,

I check it and the both animations are set up correctly.

Just tested as you said :
CCFiniteTimeAction * headSequence = CCSequence::create(reverseAnimation,forwardAnimation,NULL);
but the second animation didn’t work.

Any guess?
Thanks in advance