I’m trying to reference a texture directly in the creation of a batch node:
CCSpriteBatchNode*batch=[CCSpriteBatchNode batchNodeWithTexture:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@"anyFrame.png"].texture];
Is this the only way to do it? Seems a bit… long. Having to pick out a random sprite in your texture, then use it’s texture; the goal is to get the entire texture atlas in the batch node.
1 Answer