The function sets its sprite’s volume to the specified amount. It only affects the sprite (or the Stage) that the block is in.
setvolumeto()
Function Definition: setvolumeto(volume = 100)
- Python Library: Sound
- Library Import: sprite = Sprite("Sprite-Name")
- Mode: Stage Mode
Parameters
Name | Type | Description | Expected Values | Default Value |
---|---|---|---|---|
volume | int | The volume value. | Integer | 100 |
Description
Example
There are no examples documented for this article.