Stage::addSound()
Adds a new sound. The file needs to be a mp3, wav or ogg file.
Examples
Syntax
Java
Scratch
add sound (name) (file path)
Parameters
Name | Data Type | Description |
---|---|---|
name | String | The name of the sound |
filePath | String | The file path of the sound file |
Return
void