ScriptingBackground
SuperTux Bot edited this page Apr 22, 2023
·
1 revision
Note: This file is auto-generated from the SuperTux scripting interface source code, using the template ScriptingPage.md.
A Background
that was given a name can be manipulated by scripts.
A Background
can be accessed by its name from a script or via sector.name
from the console.
Method | Explanation |
---|---|
set_image(string image) |
Sets the background's image. |
set_images(string top_image, string middle_image, string bottom_image) |
Sets the top, middle and bottom background images. |
set_speed(float speed) |
Sets the background speed. |
get_color_red() |
Returns the red color value. |
get_color_green() |
Returns the green color value. |
get_color_blue() |
Returns the blue color value. |
get_color_alpha() |
Returns the alpha color value. |
set_color(float red, float green, float blue, float alpha) |
Sets the background color. |
fade_color(float red, float green, float blue, float alpha, float time) |
Fades to specified background color in time seconds. |
None.
Home
Guidelines
Game Mechanics
Tools
Engine
- Cameras in other games
- Collision
- Configuration File
- Console
- Cutscenes
- Game_Engine
- Lighting
- Map_transformer
- Portables
- SceneGraph
- Scripting
Specifications
Milestones
- Milestone 1 Analysis
- Milestone 2 Design Document
- Milestone 2 Design Document Old
- Milestone 3 Design Document
Building (mostly outdated)
- INSTALL.md
- Building
- Building on macOS
- Building SuperTux
- Building on Windows
- Building with MXE (cross-compile)
Meetings