Scratch for Java

Diese Seite ist noch nicht übersetzt. Sie wird in ihrer Originalsprache angezeigt.

Volume

Turning sounds up and down with setVolume() and changeVolume().

Press space to play a sound, and the up and down arrow keys to change how loud it is. The volume is a percentage, as in Scratch, and stays between 0 and 100 however far you push it.

this.addSound("handleCoins");
this.setVolume(100);
...
this.changeVolume(-10);

The sound is one of the built-in sounds, so there is no file to find first.

Run it here

Click the stage so it takes the keyboard, then press space for the sound and the up and down arrows to change how loud it is.

Source Code:

Volume

Teilbare URL erstellen

Abschnitte auswählen