Set () () to ()%: Difference between revisions
Set () () to ()%
Content added Content deleted
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
|title = set () () to ()% |
|title = set () () to ()% |
||
|block_name=set [ v] ( v) to ()%::#e256a1}} |
|block_name=set [ v] ( v) to ()%::#e256a1}} |
||
The '''set () () to ()%''' block is a stack block in the [[Sound Systems]] extension. It sets the given attribute to the selected audio group. |
The '''set () () to ()%''' block is a stack block in the [[Sound Systems]] extension. It sets the given attribute to the selected audio group by the given percentage. |
||
==Dropdowns== |
==Dropdowns== |
||
The first dropdown is the list of audio groups |
* The first dropdown is the list of audio groups, the list will expand as you add more and more audio groups. |
||
* The second dropdown is a selection of attributes to change to the selected audio group, these include: |
|||
** volume: Changes the volume of the audio group, which is a thing you can do with vanilla blocks. |
|||
** speed: Changes the speed of the audio group. |
|||
** detune: Changes the detune of thee audio group. |
|||
** pan: Changes the pan of the audio group, again you can change this with the vanilla blocks as well. |
|||
== Workaround == |
|||
If you want to change the volume of an audio group, you can do something like this: |
|||
<scratchblocks> |
|||
broadcast (audio group volume change v) |
|||
when I receive [audio group volume change v]//Put this in the sprites that has the audio you want |
|||
set volume to (...)% |
|||
</scratchblocks> |
|||
Pan: |
|||
<scratchblocks> |
|||
broadcast (audio group pan change v) |
|||
when I receive [audio group pan change v]//Put this in the sprites that has the audio you want |
|||
set [pan left/right v] effect to (...)::sound |
|||
</scratchblocks> |
|||
However, the downside is that it will affect EVERY sound the sprite has. |
|||
{{DISPLAYTITLE:set () () to ()%}} |
{{DISPLAYTITLE:set () () to ()%}} |
||
[[Category:Stack Blocks]] |
[[Category:Stack Blocks]] |
Latest revision as of 09:54, 17 June 2024
Images needed
This article needs images or better quality images. You can help PenguinMod Wiki by adding the images or uploading them. Specifically: The article needs an image for each attribute.
set () () to ()% | |
---|---|
set [ v] ( v) to ()%::#e256a1 | |
Block Type | Stack Block |
Category / Extension | Sound Systems |
The set () () to ()% block is a stack block in the Sound Systems extension. It sets the given attribute to the selected audio group by the given percentage.
Dropdowns
- The first dropdown is the list of audio groups, the list will expand as you add more and more audio groups.
- The second dropdown is a selection of attributes to change to the selected audio group, these include:
- volume: Changes the volume of the audio group, which is a thing you can do with vanilla blocks.
- speed: Changes the speed of the audio group.
- detune: Changes the detune of thee audio group.
- pan: Changes the pan of the audio group, again you can change this with the vanilla blocks as well.
Workaround
If you want to change the volume of an audio group, you can do something like this:
broadcast (audio group volume change v) when I receive [audio group volume change v]//Put this in the sprites that has the audio you want set volume to (...)%
Pan:
broadcast (audio group pan change v) when I receive [audio group pan change v]//Put this in the sprites that has the audio you want set [pan left/right v] effect to (...)::sound
However, the downside is that it will affect EVERY sound the sprite has.