I have created a spiraling animation for a football. I want to be able to run it on 2 sprites simultaneously.
This is what I have done:
CCAnimation* footballAnim = [CCAnimation animationWithFrame:@"Football" frameCount:60 delay:0.005f]; spiral = [CCAnimate actionWithAnimation:footballAnim]; CCRepeatForever* repeat = [CCRepeatForever actionWithAction:spiral]; [Sprite1 runAction: repeat]; [Sprite2 runAction: repeat];
However, the action is only run on the first sprite. What am I doing wrong?