Inherits from CCActionInterval : CCActionFiniteTime : CCAction : NSObject
Conforms to NSCopying
Declared in CCActionInterval.h

Overview

This action moves the target by the x,y values in the specified point value. 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.

Class Methods

actionWithDuration:position:

Creates the action.

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

Parameters

duration

Action interval.

deltaPosition

Delta position.

Return Value

New moveby action.

Declared In

CCActionInterval.h

Instance Methods

initWithDuration:position:

Initializes the action.

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

Parameters

duration

Action interval.

deltaPosition

Delta position.

Return Value

New moveby action.

Declared In

CCActionInterval.h