cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCSpeed Class Reference

#import <CCAction.h>

+ Inheritance diagram for CCSpeed:
+ Collaboration diagram for CCSpeed:

List of all members.

Public Member Functions

(id) - initWithAction:speed:

Static Public Member Functions

(id) + actionWithAction:speed:

Protected Attributes

CCActionInterval_innerAction
CGFloat _speed

Properties

CGFloat speed
CCActionIntervalinnerAction

Detailed Description

Changes the speed of an action, making it take longer (speed<1) or less (speed>1) time. Useful to simulate 'slow motion' or 'fast forward' effect.

Warning:
This action can't be Sequence-able because it is not an CCIntervalAction

Member Function Documentation

+ (id) actionWithAction: (CCActionInterval *)  action
speed: (CGFloat)  value 

creates the action

- (id) initWithAction: (CCActionInterval *)  action
speed: (CGFloat)  value 

initializes the action


Property Documentation

- (CCActionInterval*) innerAction [read, write, retain]

Inner action of CCSpeed

- (CGFloat) speed [read, write, assign]

alter the speed of the inner function in runtime


The documentation for this class was generated from the following file: