CCProgressNode Class Reference
Inherits from | CCNode : CCResponder : NSObject |
---|---|
Declared in | CCProgressNode.h |
Overview
CCProgressNode uses a CCSprite whose texture can be revealed progressively.
- Progress type can currently be Radial, Horizontal or vertical.
Midpoint is used to modify the start position:
- Radial type: the mid point changes the center point.
- Bar type: the midpoint changes the bar growth, it expands from the center but clamps to the sprites edge:
- Left -> Right use (0,0)
- Right -> Left use (1,y)
- Bottom -> Top use (x,0)
- Top -> Bottom use (x,1)
Progress percentage is in the range 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.5)