![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCActionInterval.h>
Public Member Functions | |
(id) | - initWithDuration:position: |
Static Public Member Functions | |
(id) | + actionWithDuration:position: |
Protected Attributes | |
CGPoint | _positionDelta |
CGPoint | _startPos |
CGPoint | _previousPos |
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.
+ (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.