Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
i have multiple CALayers and attached to them is a CAKeyframeAnimation

what i want to do is have the first layer animate immediately and then the next layer trigger a certain time after that, and the next layer triggers after a certain time after that and so forth
and have these animations repeat

how do i make an animation start partway through another layer's animation?
 
i have multiple CALayers and attached to them is a CAKeyframeAnimation

what i want to do is have the first layer animate immediately and then the next layer trigger a certain time after that, and the next layer triggers after a certain time after that and so forth
and have these animations repeat

how do i make an animation start partway through another layer's animation?

[[CCDirector sharedDirector] setAnimationInterval:1.0/60];
It can be used between two scenes.

id action = [CCDelayTime actionWithDuration:3.0f];
or
id action = [CCSequence actionWithDuration:3.0f];
It can be used between two animations.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.