Axmol Engine 2.4.0-258ceca
|
Resize a Node object by a size. More...
#include <ActionInterval.h>
Inherits ActionInterval.
Public Member Functions | |
virtual void | update (float time) override |
bool | initWithDuration (float duration, const Vec2 &deltaSize) |
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 ResizeBy * | create (float duration, const Vec2 &deltaSize) |
Creates the action. | |
Resize a Node object by a size.
Works on all nodes where setContentSize is effective. But it's mostly useful for nodes where 9-slice is enabled
Creates the action.
duration | Duration time, in seconds. |
deltaSize | The delta size. |
|
overridevirtual |
time | in seconds |