Cocos2d-x  v3.12
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
MoveTo Class Reference

Moves a Node object to the position x,y. More...

Inherits MoveBy.

Public Member Functions

virtual MoveToclone () const override
 override MoveBy.
 
virtual MoveToreverse () 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 MoveTocreate (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 MoveTocreate (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 MoveBycreate (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 MoveBycreate (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...
 

Detailed Description

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.

Member Function Documentation

static MoveTo* create ( float  duration,
const Vec2 position 
)
static

Creates the action with duration and 2d position.

Duration time, in seconds. The destination position in 2d. An autoreleased MoveTo object.

var create ( var  duration,
var  position 
)
static

Creates the action with duration and 2d position.

Duration time, in seconds. The destination position in 2d. An autoreleased MoveTo object.

local create ( local  duration,
local  position 
)
static

Creates the action with duration and 2d position.

Duration time, in seconds. The destination position in 2d. An autoreleased MoveTo object.

static MoveTo* create ( float  duration,
const Vec3 position 
)
static

Creates the action with duration and 3d position.

Duration time, in seconds. The destination position in 3d. An autoreleased MoveTo object.

var create ( var  duration,
var  position 
)
static

Creates the action with duration and 3d position.

Duration time, in seconds. The destination position in 3d. An autoreleased MoveTo object.

local create ( local  duration,
local  position 
)
static

Creates the action with duration and 3d position.

Duration time, in seconds. The destination position in 3d. An autoreleased MoveTo object.


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