
Untitled
By: a guest on
Aug 12th, 2012 | syntax:
None | size: 0.47 KB | hits: 18 | expires: Never
CCSprite is not using the same texture id
CCSpriteBatchNode *mNode = [param objectForKey:@"BatchNode"];
if (self =[super initWithTexture:mNode.texture rect:rect ])
{
CCAnimation *walkAnim = [CCAnimation animationWithFrames:[[allFrameCache objectAtIndex:0] objectAtIndex:0] delay:frequencyFloat];
CCAction* walkAction = [CCRepeatForever actionWithAction:[CCAnimate actionWithAnimation:walkAnim restoreOriginalFrame:NO]];
[self runAction:walkAction];
}