Axmol Engine 2.4.0-258ceca
|
Resize a Node object to the final size by modifying it's 'size' attribute. More...
#include <ActionInterval.h>
Inherits ActionInterval.
Public Member Functions | |
bool | initWithDuration (float duration, const Vec2 &final_size) |
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 ResizeTo * | create (float duration, const Vec2 &final_size) |
Creates the action. | |
Resize a Node object to the final size by modifying it's 'size' attribute.
Creates the action.
Resize a Node object to the final size by modifying it's 'size' attribute. Works on all nodes where setContentSize is effective. But it's mostly useful for nodes where 9-slice is enabled
duration | Duration time, in seconds. |
final_size | The target size to reach |
bool initWithDuration | ( | float | duration, |
const Vec2 & | final_size ) |
initializes the action
duration | in seconds |
final_size | in Vec2 type |