Public Member Functions | Static Public Member Functions | Properties

CCSpeed Class Reference

#import <CCAction.h>

Inherits CCAction.

Collaboration diagram for CCSpeed:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithAction:speed:

Static Public Member Functions

(id) + actionWithAction:speed:

Properties

float 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.

Warning:
This action can't be Sequenceable because it is not an IntervalAction

Definition at line 129 of file CCAction.h.


Member Function Documentation

+ (id) actionWithAction: (CCIntervalAction *)  action
speed: (float)  rate 

creates the action

- (id) initWithAction: (CCIntervalAction *)  action
speed: (float)  rate 

initializes the action


Property Documentation

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

alter the speed of the inner function in runtime

Definition at line 133 of file CCAction.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1