ScriptingGameObjectManager.md 1.2 KB

Note: This file is auto-generated from the SuperTux scripting interface source code, using the template ScriptingPage.md.

Summary

This class provides basic controlling functions for a sector.

Instance

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.

Methods

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.

Constants

None.