This file is auto-generated from the SuperTux source code, using the template ScriptingPage.md.
Abstract base class for MovingObject
s, that are represented by a sprite.
None.
This class inherits functions and variables from the following base classes:
The following classes inherit functions and variables from this class:
Method | Explanation |
---|---|
bool set_sprite(string file) |
Sets the sprite of the object. |
string get_sprite() |
Returns the file of the object's sprite. |
string get_action() |
Returns the name of the current action of the sprite. |
void set_action(string name, int loops = -1) |
Sets the current action of the sprite, as well as the number of times it should loop, and resizes the bounding box.loops - Optional, -1 by default (negative value means infinite). Set to -100 to continue looping from the previous action. |
void set_action_loops(string name, int loops) |
Deprecated! Use set_action() instead! Sets the current action of the sprite, as well as the number of times it should loop, and resizes the bounding box. loops - Negative value means infinite. Set to -100 to continue looping from the previous action. |
None.
None.