This wiki has been moved to https://github.com/SuperTux/wiki into the mediawiki branch.

ScriptingSound

From SuperTux
Jump to: navigation, search

Summary

This class provides a very simple interface to the audio subsystem.

Methods

play_music(string track_name) Plays the selected music track (automatically prepending the path to the music folder and appending the .ogg extension).
play_sound(string sound_name) Plays the sound specified in sound_name (that is identical to the filename of the sound without the .wav extension).

Constants

None

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