world · reference
playSound·
Plays a sound by its name. Pass true as loop to keep it playing; it stops the music already playing. Add "layer" to play it on top.
- use
playSound(sound, loop?, "layer"?)- url
- the block starts with
"sound://default.mp3" - loop
- the block starts with
false - kind
- a statement: a line of its own
- drawer
- World, in the code room's blocks
Explain this block
Ask how playSound works in your game.