CCProgressNode Class Reference
| Inherits from | CCNode : CCResponder : NSObject |
| Declared in | CCProgressNode.h |
Overview
CCProgressNode displays a sprite with a progressive reveal.
Notes
- Progress type can currently be Radial, Horizontal or vertical.
Midpoint is used to modify the start position:
Progress percentage is 0 -> 100.
- Bar change rate allows the bar type to move the component at a specific rate.
- Set the rate to zero to make sure it stays at 100%
- Example: If you want a Left -> Right bar and also have the height grow set the rate to (0,1) and modpoint to (0,0.5f)
Tasks
Accessing the Progress Node Attributes
-
typeproperty -
reverseDirectionproperty -
midpointproperty -
barChangeRateproperty -
percentageproperty -
spriteproperty
Creating a CCProgressNode Object
Initializing a CCProgressNode Object
Properties
barChangeRate
Bar change rate.
@property (nonatomic, readwrite) CGPoint barChangeRateDeclared In
CCProgressNode.hmidpoint
Progress start position.
@property (nonatomic, readwrite) CGPoint midpointDeclared In
CCProgressNode.hpercentage
Progress percentage.
@property (nonatomic, readwrite) float percentageDeclared In
CCProgressNode.hreverseDirection
Reverse progress direction.
@property (nonatomic, readwrite) BOOL reverseDirectionDeclared In
CCProgressNode.h