Sprite::playSound()
Plays a sound.
Every sprite plays its own copy, so ten sprites playing the same sound are heard ten times at once. One sprite only plays a sound once at a time: playing it again while it is still going does nothing.
Examples
Syntax
Java
.playSound(name)
Scratch
start sound [name v]
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | the sound name |
Return
void