CCActionProgressTo Class Reference

Inherits from CCActionInterval : CCActionFiniteTime : CCAction : NSObject
Conforms to NSCopying
Declared in CCActionProgressTimer.h

Overview

This action is for use with the CCProgressNode to control the progression to animation.

Warning: The target node must be a CCProgressNode or subclass of CCProgressNode.

Creating a Progress Action

+ actionWithDuration:percent:

Creates a progress action.

+ (id)actionWithDuration:(CCTime)duration percent:(float)percent

Parameters

duration

Action duration.

percent

Percentage.

Return Value

New prgress action.

Declared In

CCActionProgressTimer.h

– initWithDuration:percent:

Initializes a progress action.

- (id)initWithDuration:(CCTime)duration percent:(float)percent

Parameters

duration

Action duration.

percent

Percentage.

Return Value

New progress action.

Declared In

CCActionProgressTimer.h