CCActionRepeat Class Reference
| Inherits from | CCActionInterval : CCActionFiniteTime : CCAction : NSObject |
|---|---|
| Conforms to | NSCopying |
| Declared in | CCActionInterval.h |
Overview
This action will repeat the specified action a number of times. If you wish to repeat an action forever, use CCActionRepeatForever.
Creating a Repeat Action
+ actionWithAction:times:
Creates a repeat action. Times is an unsigned integer between 1 and MAX_UINT.
+ (id)actionWithAction:(CCActionFiniteTime *)action times:(NSUInteger)timesParameters
action |
Action to repeat. |
|---|---|
times |
Number of times to repeat action. |
Return Value
New action repeat
Declared In
CCActionInterval.h
– initWithAction:times:
Initializes a CCRepeat action. Times is an unsigned integer between 1 and MAX_UINT.
- (id)initWithAction:(CCActionFiniteTime *)action times:(NSUInteger)timesParameters
action |
Action to repeat. |
|---|---|
times |
Number of times to repeat action. |
Return Value
New action repeat.
Declared In
CCActionInterval.h