Scratch for Java

Window::setMusicVolume()

Sets the volume of the background music, e.g. from an options menu. Sounds of sprites and stages are not affected.

Examples

View on GitHub

Syntax

Java

.setMusicVolume(volume)

Parameters

Name Data Type Description
volume double from 0 to 100 (the default)

Return

void

setMusicVolume()

Create Shareable URL

Select Sections