Hi,
I created CCAnimation and run it throught action like this:
CCAnimation* currentPlayerAnimation = [[CCAnimation alloc] initWithName:@"idle" delay:0.1)];
//... animation init - skiped here
CCSprite * runnner = [CCSprite spriteWithSpriteFrameName:@"run1.png"];
id action = [CCRepeatForever actionWithAction:[CCAnimate actionWithAnimation:currentPlayerAnimation]];
[runnner runAction:action];
Now I want to change speed of animation in another place of my game - I used [currentPlayerAnimation setDelay:0.5]
- but nothing changed - animation has still same speed.
I know, that it is possible to slow down whole game using director method, but I just want to change only this one animation speed.
Thanks a lot,
Jindrich