-
-
Notifications
You must be signed in to change notification settings - Fork 530
ScriptingGameObjectManager
SuperTux Bot edited this page Sep 7, 2023
·
9 revisions
Note: This file is auto-generated from the SuperTux scripting interface source code, using the template ScriptingPage.md.
This class provides basic controlling functions for a sector.
For in-level sectors, an instance under sector.settings
is available from scripts and the console.
For worldmap sectors, such instance is available under worldmap.settings
.
Method | Explanation |
---|---|
set_ambient_light(float red, float green, float blue) |
Sets the sector's ambient light to the specified color. |
fade_to_ambient_light(float red, float green, float blue, float fadetime) |
Fades to a specified ambient light color in fadetime seconds. |
get_ambient_red() |
Returns the red channel of the ambient light color. |
get_ambient_green() |
Returns the green channel of the ambient light color. |
get_ambient_blue() |
Returns the blue channel of the ambient light color. |
set_music(string music) |
Sets the sector's music. music - Full filename, relative to the "music" folder. |
add_object(string class_name, string name, int posX, int posY, string direction, string data) |
Adds a MovingObject to the manager. Note: If adding objects to a worldmap sector, posX and posY have to be tile positions (sector position / 32). class_name - GameObject's class. name - Name of the created object. posX - X position inside the current sector. posY - Y position inside the current sector. direction - Direction. data - Additional data in S-Expression format (check object definitions in level files). |
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