From Test-Scratch-Wiki

音量设为 () %
音量設為 (100) %
类别 音效类积木
形狀 条形积木
加入於 1.2

The Set Volume to () % 积木 is a 音效类积木 and a 条形积木. The block sets its 角色的 volume to the specified amount. It only affects the sprite (or the 舞台) that the block is in.

用法示例

As the block sets its the volume of a sprite or the Stage, it is used when the volume needs to be set to a specified amount, rather than increasing or decreasing.

Some common uses for the Set Volume to () % block:

  • Volume controls
音量設為 (volume slider) %
  • Changing sound effect volume (the further away the noise-maker is, the quieter the sound effect should be)
音量設為 ((100) - ((distance to [noise v]) / (2))) %
  • Songs made with the 音效类积木 that have loud and quiet parts
音量設為 (100) %
演奏音階 (60 v) (0.5) 拍
演奏音階 (65 v) (0.4) 拍
音量設為 (75) %
演奏音階 (48 v) (1) 拍

参见

Cookies help us deliver our services. By using our services, you agree to our use of cookies.