This wiki has been moved to into the mediawiki branch.

Difference between revisions of "ScriptingSector"

From SuperTux
Jump to: navigation, search
Line 25: Line 25:
{{Navbox Scripting reference}}
{{Navbox Scripting reference}}
[[Category:Scripting Reference]]
[[Category:Scripting Reference]]
[ research essay writing]

Latest revision as of 09:19, 3 February 2012


The Sector class provides basic controlling functions for the current sector.


An instance under sector.settings is available from scripts and the console.


float get_ambient_light_red()
float get_ambient_light_green()
float get_ambient_light_blue()
Returns the specified channel of the ambient light color.
set_ambient_light(float red, float green, float blue) Sets the sector's ambient light to the specified color.
set_gravity(float gravity) Sets the sector's gravity.



Scripting reference
Ambient sound · Camera · Candle · Display effect · Floating image · Globals · Level · Level time · Path · Platform · Player · Scripted object · Sector · Sound · Text · Thunderstorm · Tilemap · Will-o-wisp · Wind