play

.play()

Starts playing this sound. If the sound has been stopped, then it will begin from the beginning. Otherwise if it has been paused, then this will start playing from where it was paused.

If the sound is already playing, then it will play again from the beginning.

This Sound object is returned to allow chaining of methods.

fire = new Sound( 'fire.mp3' )

onEachFrame() do
    if getControls().isLeftClick()
        fire.play()
    end
end

See also

pause - stop - isPlaying