Axmol Engine 2.4.0-258ceca
|
Moves a Node object x,y pixels by modifying it's position attribute. More...
#include <ActionInterval.h>
Inherits ActionInterval.
Inherited by MoveTo.
Public Member Functions | |
virtual void | update (float time) override |
bool | initWithDuration (float duration, const Vec2 &deltaPosition) |
initializes the action | |
![]() | |
float | getElapsed () |
How many seconds had elapsed since the actions started to run. | |
void | setAmplitudeRate (float amp) |
Sets the amplitude rate, extension in GridAction. | |
float | getAmplitudeRate () |
Gets the amplitude rate, extension in GridAction. | |
virtual void | step (float dt) override |
bool | initWithDuration (float d) |
initializes the action | |
Static Public Member Functions | |
static MoveBy * | create (float duration, const Vec2 &deltaPosition) |
Creates the action. | |
static MoveBy * | create (float duration, const Vec3 &deltaPosition) |
Creates the action. | |
Moves a Node object 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.
|
overridevirtual |
time | in seconds |