can i delay an animation?

Discussion in 'iOS Programming' started by Chirone, May 5, 2010.

  1. Chirone macrumors 6502

    Joined:
    Mar 2, 2009
    Location:
    NZ
    #1
    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?
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
  3. srikanthrongali macrumors newbie

    Joined:
    Apr 30, 2010
    #3
    [[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.
     

Share This Page