From Test-Scratch-Wiki
音量改变 () | |
音量改變 (-10) | |
类别 | 音效类积木 |
形狀 | 条形积木 |
加入於 | 1.2 |
The Change Volume by () 积木 is a 音效类积木 and a 条形积木. The block changes the 音量 of a 角色 by the specified amount. This only affects the sprite (or the 舞台) that the block is in.
用法示例
As this block changes a sprite's volume, it is widely used in 专案 that let you change the project's volume.
Some common uses for the Change Volume by () block:
- Volume controls
當角色被點擊 音量改變 (-10)
- As a sprite gets further away from the viewer, their noises are quieter
尺寸改變 (-25) 音量改變 (-25)
- Songs made with the 音效类积木 that have loud and quiet parts
演奏音階 (60 v) (1) 拍 音量設為 (50) % 演奏音階 (60 v) (1) 拍 音量改變 (25) 演奏音階 (60 v) (1) 拍 音量改變 (25) 演奏音階 (60 v) (1) 拍
应用
- Main article: List of Block Workarounds
This block can be replicated with the following code:
音量設為 ((音量) + (amount)) %
参见
播放音效 ()
• 播放音效 () 到底 • 停播所有音效 • 演奏节拍 () () 拍 • 演奏休息 () 拍 • 演奏音阶 () () 拍 • 演奏乐器设为 () • 音量改变 () • 音量设为 () % • 音量 • 演奏速度改变 () • 演奏速度设为 () bpm • 演奏速度更多积木… |