Stage::addSound()
Add a sound to the stage. If a sound with the received name already exists do nothing.
Example usage:
this.addSound("footstep_carpet_000");
Examples
Syntax
Java
.addSound(name, soundPath)
.addSound(name)
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | a unique name |
| soundPath | String | a sound path, or the name of a built-in sound such as "footstep_carpet_000" |
Return
void