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

#import <CCActionInterval.h>

+ Inheritance diagram for CCMoveBy:
+ Collaboration diagram for CCMoveBy:

List of all members.

Public Member Functions

(id) - initWithDuration:position:

Static Public Member Functions

(id) + actionWithDuration:position:

Protected Attributes

CGPoint _positionDelta
CGPoint _startPos
CGPoint _previousPos

Detailed Description

Moves a CCNode object x,y pixels by modifying it's position attribute. x and y are relative to the position of the object. Several CCMoveBy actions can be concurrently called, and the resulting movement will be the sum of individual movements.


Member Function Documentation

+ (id) actionWithDuration: (ccTime duration
position: (CGPoint)  deltaPosition 

creates the action

Implemented in CCMoveTo.

- (id) initWithDuration: (ccTime duration
position: (CGPoint)  deltaPosition 

initializes the action

Implemented in CCMoveTo.

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