Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
Value returned: a text string equal to the name of the sound resource currently playing (such as "boing"
) or the string "done"
if no sound is currently playing.
You use the sound
function to synchronize sounds with other actions, because scripts continue to run while sounds are playing.