How do I add a mute button?

0 favourites
  • 3 posts
From the Asset Store
Kids Game
$49 USD
New Sounds Added Update: 115 new sound effects added for no additional cost!
  • Hello everyone, I've been struggling on adding a mute button on my game, I have created a pause button and have tried to do the the same with a mute button but it doesn't seem to work. I was wondering if there's any way to try and make a mute button for my game.

  • Look at the Audio object action : Set master volume

    Set the overall volume that is applied to all audio playback.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • There are a couple of ways...

    1. You can use the audio action "set muted" to mute any sound on command and then have your mute button set all running sounds too muted.

    2. You can have all sounds called from their own group and then set that group disabled on mute.

    3. You can give the sounds you want muted audio tags for "muted" and "unmuted" with event actions that use "is not "muted"" in order for sound to be played.

    4. Or as mentioned above you can set the master volume if you want everything muted.

    I think the first one is the easiest to use unless you want to mute everything. It is the one I used for music mute option in Capt. Doe Saves the Universe.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)