Ich möchte wissen, wie kann ich Verzögerung in CCAnimation ändern?Änderung Verzögerung in CCAnimation
_monstrAnim = [CCAnimation animationWithFrames:monstrAnimFrames delay:0.1f];
self.monstr = [CCSprite spriteWithSpriteFrameName: [NSString stringWithFormat:@"monstr_%d_1.png", currentLevel]];
self.walkAction = [CCRepeatForever actionWithAction:[CCAnimate actionWithAnimation:_monstrAnim restoreOriginalFrame:NO]];
[self.monstr runAction:self.walkAction];
[monstrSpriteSheet addChild:self.monstr z:1];
dies funktioniert gut, aber ich sollte die Geschwindigkeit von FPS ändern, und ich tue ...
[self.monstr stopAllActions]; [self.monstr runAction:self.walkAction]; [self.monstrAnim setDelay:1];
aber es ist nichts passiert ...
Wann starten Sie das zweite Bit des Codes? Sofern Sie die CCAnimation nicht beibehalten, wird sie wahrscheinlich freigegeben, sobald sie ausgeführt wurde. – jonsibley