Moves a Node object by x,y pixels by modifying it's position attribute. More...
Inherits ActionInterval.
Inherited by MoveTo.
Public Member Functions | |
virtual MoveBy * | clone () const override |
override ActionInterval . | |
virtual MoveBy * | reverse (void) const override |
override Action . | |
local | reverse () |
override Action . | |
Public Member Functions inherited from ActionInterval | |
float | getElapsed (void) |
How many seconds had elapsed since the actions started to run. More... | |
var | getElapsed () |
How many seconds had elapsed since the actions started to run. More... | |
local | getElapsed () |
How many seconds had elapsed since the actions started to run. More... | |
void | setAmplitudeRate (float amp) |
Sets the amplitude rate, extension in GridAction. More... | |
float | getAmplitudeRate (void) |
Gets the ampliture rate, extension in GridAction. More... | |
virtual bool | isDone (void) const override |
override Action . | |
local | isDone () |
override Action . | |
Static Public Member Functions | |
static MoveBy * | create (float duration, const Vec2 &deltaPosition) |
Creates the action with duration and delta position. More... | |
var | create ( var duration, var deltaPosition) |
Creates the action with duration and delta position. More... | |
local | create ( local duration, local deltaPosition) |
Creates the action with duration and delta position. More... | |
static MoveBy * | create (float duration, const Vec3 &deltaPosition) |
Creates the action with duration and 3d delta position. More... | |
var | create ( var duration, var deltaPosition) |
Creates the action with duration and 3d delta position. More... | |
local | create ( local duration, local deltaPosition) |
Creates the action with duration and 3d delta position. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ActionInterval | |
bool | initWithDuration (float d) |
initializes the action with the duration. More... | |
var | initWithDuration ( var d) |
initializes the action with the duration. More... | |
local | initWithDuration ( local d) |
initializes the action with the duration. More... | |
Moves a Node object by x,y pixels by modifying it's position attribute.
x and y are relative to the position of the object. Several MoveBy actions can be concurrently called, and the resulting movement will be the sum of individual movements.
|
static |
|
static |
|
static |
|
static |