CCActionRepeatForever Class Reference
Inherits from | CCAction : NSObject |
---|---|
Conforms to | NSCopying |
Declared in | CCAction.h |
Overview
Repeats an action indefinitely (until stopped). To repeat the action for a limited number of times use the CCActionRepeat action.
Note: This action can not be used within a CCActionSequence because it is not an CCActionInterval action. However you can use CCActionRepeatForever to repeat a CCActionSequence.
Creating a Repeat Forever Action
+ actionWithAction:
Creates the repeat forever action.
+ (id)actionWithAction:(CCActionInterval *)action
Parameters
action |
Action to repeat forever. |
---|
Return Value
The repeat action object.
Declared In
CCAction.h
– initWithAction:
Initalizes the repeat forever action.
- (id)initWithAction:(CCActionInterval *)action
Parameters
action |
Action to repeat forever |
---|
Return Value
An initialised repeat action object.
Declared In
CCAction.h