play
function plays audio, either music or sounds.play
function, the game needs to have audio files loaded by adding them to the config file:play
function at any time in the script:play music musicName
music
will replace stop and replace the current music to play a new one. There is only one music playing at a timeplay sound soundName
sound
will just play a sound, no matter what else is already playing.stop music
(no need to specify the name because there is only one music playingstop sound soundName
(name must be specified)