title: How to add multiple sprite sheets in cocos2D and make it seem like one sprite?
body: <p>Please help me anyone of possible. I am building a game where I will be loading multiple CCSpriteBatchNode objects and make them change co-ordinates and rotate the frames so it would seem as if the they are animated and they are moving. I have already achieved moving one CCSpriteBatchNode object from one coordinate to another and it is animated. Now I need it to do another very different animation and load another sprite sheet file and move somewhere else, how can I do this? </p>
  
  <p>This is my code so far:</p>
  
  <pre><code>[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"PotkaEntry.plist"];
  
  CCSpriteBatchNode *spriteSheet = [CCSpriteBatchNode batchNodeWithFile:@"PotkaEntry.pvr.ccz"];
  
  [self addChild:spriteSheet];
  
  NSMutableArray *entryAnimFrames = [NSMutableArray array];
  
  for(int i = 1; i&lt;=12; i++)
  {
      [entryAnimFrames addObject:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:[NSString stringWithFormat:@"Potka_entry%d.png", i]]];
  }
  
  CCAnimationCache *entryAnim = [CCAnimation animationWithFrames:entryAnimFrames delay:0.08f];
  
  CGSize winSize = [CCDirector sharedDirector].winSize;
  
  self-&gt;_body1 = [CCSprite spriteWithSpriteFrameName:@"Potka_entry1.png"];
  
  _body1.position = CGPointMake(winSize.width/2, 0);
  
  self.walkAction = [CCRepeatForever actionWithAction:[CCAnimate actionWithAnimation:entryAnim restoreOriginalFrame:NO]];
  
  [_body1 runAction:_walkAction];
  
  _body1.scale = 0.4;
  
  [spriteSheet addChild:_body1];
  
  id entryAction = [CCMoveTo actionWithDuration:5.0f position:ccp(winSize.width/2,60)];
  
  [_body1 runAction:entryAction];
  </code></pre>