Sounds

Play and control sound effects and music.

playSound
// Start playing a sound without waiting for it to finish
self.playSound("click");
playSoundUntilDone
// Play a sound and wait until it finishes
self.playSoundUntilDone("click");
stopSounds
// Stop all sounds currently playing
self.stopSounds();
setVolume
// Set the sprite's volume to a percentage
self.volume = 100;
volume
// Get the current volume as a percentage
self.volume;