テクスチャパッカー(footballAnim-hd.pvr.ccz)と(footballAnim.pv-hd.plist)で作成したこれらのファイルを使用してアニメーションを再生しようとしていますが、問題が発生しました。これが私のコードです:
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"footballAnim.pv.plist"];
CCSprite *football = [CCSprite spriteWithSpriteFrameName:@"Football59-hd.png"];
football.position = ccp(100, 100);
CCSprite *football2 = [CCSprite spriteWithSpriteFrameName:@"Football59-hd.png"];
football2.position = ccp(120, 100);
//This is the animation
id anim = [CCAnimate actionWithSpriteSequence:@"Football%d-hd.png"
numFrames:59
delay:0.01
restoreOriginalFrame:NO];
//This is the animation
id anim2 = [CCAnimate actionWithSpriteSequence:@"Football%d-hd.png"
numFrames:59
delay:0.01
restoreOriginalFrame:NO];
//This is the action
id repeat = [CCRepeatForever actionWithAction:anim];
//This is the action
id repeat2 = [CCRepeatForever actionWithAction:anim2];
CCSpriteBatchNode *batchNode=[CCSpriteBatchNode batchNodeWithFile:@"footballAnim.pvr.ccz"];
[self addChild:batchNode];
[batchNode addChild:football];
[batchNode addChild:football2];
[football runAction:repeat];
[football2 runAction:repeat2];
だから私の問題は、(cocos2d v1.1.0-beta2b)を使用しているkobold2dを使用していて、このアニメーションを再生しようとすると、フレームの半分しか再生されないことですが、別のcocos2dプロジェクトでこの(正確な)コードを試しましたは(cocos2d v1.0.0-rc)を使用しており、チャームのように機能します。これはcocos2dのバグですか、それとも私は何か正しいことをしていませんか?