chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.56k stars 471 forks source link

Add Event: Change Master Volume #1177

Open sttng opened 2 years ago

sttng commented 2 years ago

Is your feature request related to a problem? Please describe. For "cut-scenes" or changing to a menu I like to adjust the sound and music volume programmatically

Describe the solution you'd like I suggest to have an event added "Change Master Volume" where you can define the volume level and have this event triggered ad you like.

Describe alternatives you've considered Currently I am either using the "Stop Music" event. Alternatively I have added a copied version of my music, only where the volume is lowered and trigger to play that "lowered" song as I needed. This has 2 caveats. First this will restart the song, second it'll take up additional resources.

patrickmollohan commented 2 years ago

Great idea! I was thinking of adding that before but never got around to doing so. Your post gave me the motivation to do so haha. I've submitted a pull request for this; hopefully it'll be accepted.

pau-tomas commented 2 years ago

In the meantime there's a plugin to do so: https://github.com/Y0UR-U5ERNAME/gbs-plugin-collection#set-master-volume-plugin