cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for 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

CGFloat _speed


CGFloat speed

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.

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: