Sound functions
Free functions you can call directly in sprite code.
getSound
Section titled “getSound”getSound(soundName: string): SoundGet a sound object by name.
See also Sprite.getSound
playSoundUntilDone
Section titled “playSoundUntilDone”playSoundUntilDone(sound: string): voidPlay a sound and wait until it finishes.
⏸️ This pauses your script until it finishes — the next line runs only after it’s done.
See also Sprite.playSoundUntilDone
Used by
startSound
Section titled “startSound”startSound(sound: string): voidStart playing a sound without waiting.
⏸️ This pauses your script until it finishes — the next line runs only after it’s done.
See also Sprite.startSound
Used by
stopAllOfMySounds
Section titled “stopAllOfMySounds”stopAllOfMySounds(): voidStop all sounds played by this sprite.
See also Sprite.stopAllOfMySounds
stopAllSounds
Section titled “stopAllSounds”stopAllSounds(): voidStop all sounds in the project.
See also Sprite.stopAllSounds