hello from question you realies that i m new in this platform...
my que.. is
right now i m using following code for animation...
for(int j=790;j<=805;j++)
{
NSString *s1 = [[NSString alloc]initWithFormat:@"%d.png",j];
texture1 = [[CCTextureCache sharedTextureCache] addImage:s1];
[s1 release];
textureSize1 = [texture1 contentSize];
textureRect1 = CGRectMake(0, 0, textureSize1.width, textureSize1.height);
spriteFrame1 = [CCSpriteFrame frameWithTexture:texture1 rect:textureRect1];
[buganimationFrames addObject:spriteFrame1];
}
wire = [CCSprite spriteWithFile:@"711.png"];
wire.position = ccp(220.0f, 120.0f);
wire.tag=1;
[self addChild: wire]
CCAnimation *animation = [CCAnimation animationWithFrames:animationFrames delay:delay];
CCAnimate *animate = [CCAnimate actionWithAnimation:animation];
CCRepeatForever *repeat = [CCRepeatForever actionWithAction:animate];
[wire runAction:repeat]
its work fine..
Am i doing something wrong???
pls tell me
thank you