Animates a sprite given the name of an Animation.
More...
#include <ActionInterval.h>
Inherits ActionInterval.
Animates a sprite given the name of an Animation.
◆ create()
Creates the action with an Animation and will restore the original frame when the animation is over.
- Parameters
-
animation | A certain animation. |
- Returns
- An autoreleased Animate object.
◆ setAnimation()
Sets the Animation object to be animated.
- Parameters
-
animation | certain animation. |
◆ getAnimation()
returns the Animation object that is being animated
- Returns
- Gets the animation object that is being animated.
◆ getCurrentFrameIndex()
int getCurrentFrameIndex |
( |
| ) |
|
|
inline |
Gets the index of sprite frame currently displayed.
- Returns
- int the index of sprite frame currently displayed.
◆ update()
virtual void update |
( |
float | t | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: