Sprite::addSound()
Adds a new sound. The file needs to be a mp3, wav or ogg.
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