Skip to content

Instantly share code, notes, and snippets.

@ecpplus
Created November 24, 2010 04:42
Show Gist options
  • Save ecpplus/713124 to your computer and use it in GitHub Desktop.
Save ecpplus/713124 to your computer and use it in GitHub Desktop.
Cocos2d(0.99.4) - CCRepeatForever having interval.
id delaying = [CCDelayTime actionWithDuration:1.5f]; // duration is second, not millsecond.
id sequence = [CCSequence actions:someAction, delaying, nil];
CCRepeatForever *repeatAction = [CCRepeatForever actionWithAction:sequence];
[aSprite runAction:repeatAction];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment