Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CCSprite is not using the same texture id
  2. CCSpriteBatchNode *mNode =      [param objectForKey:@"BatchNode"];
  3.  
  4. if (self =[super initWithTexture:mNode.texture rect:rect ])
  5.  
  6. {
  7.  
  8.     CCAnimation *walkAnim = [CCAnimation animationWithFrames:[[allFrameCache objectAtIndex:0] objectAtIndex:0] delay:frequencyFloat];
  9.     CCAction* walkAction = [CCRepeatForever actionWithAction:[CCAnimate actionWithAnimation:walkAnim restoreOriginalFrame:NO]];
  10.     [self runAction:walkAction];
  11.  
  12. }