我在 2 个精灵上运行动画,如下所示:
-(void) startFootballAnimation {
CCAnimation* footballAnim = [CCAnimation animationWithFrame:@"Football" frameCount:60 delay:0.005f];
spiral = [CCAnimate actionWithAnimation:footballAnim];
CCRepeatForever* repeat = [CCRepeatForever actionWithAction:spiral];
[self runAction:repeat];
[secondFootball runAction:[[repeat copy] autorelease]];
}
我遇到的问题是,当我调用此方法时:
- (void) slowAnimation {
[spiral setDuration:[spiral duration] + 0.01];
}
....它只会减慢第一个精灵的动画,而不是第二个。我是否需要对复制的动作做一些不同的事情来让它们对动画的减慢做出反应?