我收到以下错误:'CCSprite is not using the same texture id'
这就是我正在做的事情:
.h file
@interface GameplayLayer : CCLayer <GameplayLayerDelegate> {
CCSpriteBatchNode* pointbb;
}
.m file
pointbb = [CCSpriteBatchNode batchNodeWithFile:@"pointsbb.png"];
[self addChild:pointbb];
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"pointsbb.plist"];
CCSprite* spa = [CCSprite spriteWithSpriteFrameName:@"poi2500001.png"];
[pointbb addChild:spa];
确切的语法适用于其他动画,但这个。我的正确做法应该是什么?