kts.Sound

Name

kts.Sound – create a Sound

Synopsis

result = kts.Sound(filename)

Description

A Sound represents a sound file (.wav file) that can be played during the game.

To create a Sound, call kts.Sound passing the filename of a valid .wav file. This is specified relative to the directory of the currently executing Lua script.

Once a Sound has been created, it can be passed to kts.PlaySound to play the sound at appropriate times during gameplay.

Return Value

The return value is the newly created Sound (a Lua userdata object).

See Also

kts.Graphic

kts.PlaySound