cocos2d-iphone  1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
CCSpeed Interface Reference

#include <CCAction.h>

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

List of all members.

Public Member Functions

id initWithAction:speed: (CCActionInterval *action,[speed] float rate)

Static Public Member Functions

id actionWithAction:speed: (CCActionInterval *action,[speed] float rate)

Protected Attributes

CCActionIntervalinnerAction_
float speed_

Properties

float 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 Sequenceable because it is not an CCIntervalAction

Member Function Documentation

id CCSpeed::actionWithAction:speed: ( CCActionInterval action,
[speed] float  rate 
) [static, virtual]

creates the action

id CCSpeed::initWithAction:speed: ( CCActionInterval action,
[speed] float  rate 
) [virtual]

initializes the action


Property Documentation

CCActionInterval* CCSpeed::innerAction [read, write, retain]

Inner action of CCSpeed

float CCSpeed::speed [read, write, assign]

alter the speed of the inner function in runtime


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