0 votes

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

in Engine by (101 points)

1 Answer

0 votes
Best answer

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.

by (72 points)
selected by

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.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.