How to make a sound on/off system?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AndrewD

How to make a sound on/off system, (if sound effects are in different not preload scenes) using a texture button with toggle mode?

:bust_in_silhouette: Reply From: ChristianSF

I assume, nothing in here or here or here worked for you? Then you should post your code and explain your setup in more detail.

I guess, you could also have the button emit a custom signal every scene listens for, and if received, turns off all audio within themselves.
I am no big fan, though, of distributing code all over the place and would rather advise to try to centralize your sound handling.

ChristianSF | 2020-08-02 06:28