Tagspritesheet animation

How to get sprite animation frames using spritesheet in cocos2d

H

if you are using SpriteSheet for animation,you can extract all required frame like this…     [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"spritesheet.plist"];     CCSpriteBatchNode *spriteSheet = [CCSpriteBatchNode batchNodeWithFile:@"spritesheet.png"];     [self addChild:spriteSheet];      NSMutableArray *frames = [[[NSMutableArray alloc]init]retain];      for(int...

Category