This file is auto-generated from the SuperTux source code, using the template ScriptingPage.md.
Base class for all dynamic/moving game objects.
None.
This class inherits functions and variables from the following base classes:
The following classes inherit functions and variables from this class:
Method | Explanation |
---|---|
float get_x() |
Returns the object's X coordinate. |
float get_y() |
Returns the object's Y coordinate. |
void set_pos(float x, float y) |
Sets the position of the object. |
void move(float x, float y) |
Moves the object by x units to the right and y down, relative to its current position. |
float get_width() |
Returns the object's hitbox width. |
float get_height() |
Returns the object's hitbox height. |
None.
None.