我创建了一个这样的动画:
//xxx animation cache
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"mainmenu_xxx.plist"];
//xxx blink
CCAnimation *animXxx1Anim = [CCAnimation animationWithSpriteSequence:@"char_xxx_loops%@@2x.png" frameSequence:@"02,03,04" delay:1/24.0];
[animXxx1Anim setRestoreOriginalFrame:NO];
[[CCAnimationCache sharedAnimationCache] addAnimation:animXxx1Anim name:@"xxxBlink"];
然后像这样运行它:
//blink animation
[animatedXxxSprite runAction:[CCAnimate actionWithAnimation:[[CCAnimationCache sharedAnimationCache] animationByName:@"xxxBlink"]]];
它在模拟器、iPhone 3GS、iPhone 4S 上应有显示,但在 iPod 4G 上显示为黑色矩形。知道是什么原因造成的吗?