CCActionProgressFromTo 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 from and to animation.

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

Creating a Progress Action

+ actionWithDuration:from:to:

Creates a progress action.

+ (id)actionWithDuration:(CCTime)duration from:(float)fromPercentage to:(float)toPercentage

Parameters

duration

Action duration.

fromPercentage

Percentage to start from.

toPercentage

Percentage to end at.

Return Value

New progress action.

Declared In

CCActionProgressTimer.h

– initWithDuration:from:to:

Initializes a progress action.

- (id)initWithDuration:(CCTime)duration from:(float)fromPercentage to:(float)toPercentage

Parameters

duration

Action duration.

fromPercentage

Percentage to start from.

toPercentage

Percentage to end at.

Return Value

New progress action.

Declared In

CCActionProgressTimer.h