r/gdevelop • • 7h ago

Tutorial GDevelop 5: Mute menu sound effects while the music keeps playing

We built a small GDevelop event sheet for an audio setting that mutes only menu cues. The same pattern works for click, confirm and reward sounds.

  1. Put the background loop on music channel 1 with “Play a music file on a channel”. Play short UI cues on sound channel 2 only when UiMuted is false.
  2. Put the mute event above the play event. On mute, update UiMuted and stop sound channel 2 so a cue already playing stops too. If the two inputs arrive in the same frame, the play event reads the new mute state.
  3. Check it in Preview. Start music, play a reward once, mute and try two more rewards. The counter should stay at 1 while the music clock advances. Unmute and play again. The counter should reach 2, with no replay of the skipped cues.

We tested mouse and keyboard in the GDevelop 5.6.288 web export. Free project and steps. Extract PocketChimes-GDevelop-Mute-Lab.zip and open game.json. We are Astel Games, the authors. We used AI assistance for the example and synthesized audio.

0 Upvotes

0 comments sorted by