Moves a Node object to the position x,y. More...
Inherits MoveBy.
Public Member Functions | |
virtual MoveTo * | clone () const override |
override MoveBy . | |
virtual MoveTo * | reverse () const override |
override Action . | |
var | reverse () |
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 MoveTo * | create (float duration, const Vec2 &position) |
Creates the action with duration and 2d position. More... | |
var | create ( var duration, var position) |
Creates the action with duration and 2d position. More... | |
local | create ( local duration, local position) |
Creates the action with duration and 2d position. More... | |
static MoveTo * | create (float duration, const Vec3 &position) |
Creates the action with duration and 3d position. More... | |
var | create ( var duration, var position) |
Creates the action with duration and 3d position. More... | |
local | create ( local duration, local position) |
Creates the action with duration and 3d position. More... | |
Static Public Member Functions inherited from MoveBy | |
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 to the position x,y.
x and y are absolute coordinates by modifying it's position attribute. Several MoveTo actions can be concurrently called, and the resulting movement will be the sum of individual movements.
Creates the action with duration and 2d position.
Duration time, in seconds. The destination position in 2d. An autoreleased MoveTo object.
|
static |
Creates the action with duration and 2d position.
Duration time, in seconds. The destination position in 2d. An autoreleased MoveTo object.
|
static |
Creates the action with duration and 2d position.
Duration time, in seconds. The destination position in 2d. An autoreleased MoveTo object.
Creates the action with duration and 3d position.
Duration time, in seconds. The destination position in 3d. An autoreleased MoveTo object.
|
static |
Creates the action with duration and 3d position.
Duration time, in seconds. The destination position in 3d. An autoreleased MoveTo object.
|
static |
Creates the action with duration and 3d position.
Duration time, in seconds. The destination position in 3d. An autoreleased MoveTo object.