0 Favourites

Audio Options

  • How do you guys go about doing your audio settings?

    I wish I could give the audio object instance variables instead of using global variables. For example if I wanted to separate out sfx and music I would need sfx volume, music volume, sfx muted, and music muted variables.

    Using the built in mute action doesn't work for sound effects, it doesn't prevent future ones from being played. I use an event to check a variable to see if the sound should be played. I suppose I could just set the volume to -200 dB or something to save an event, but I'd like to leave the volume untouched so that when the sound is unmuted, the previous volume is restored.

    Using set silent doesn't work, as it cannot be applied to specific tags. If my music has multiple parts and the user toggles the silence before a transition, the next part won't get played, so when the silence is toggled off there will be no music.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic Locked topic
238 15,131
Tom's avatar
Tom Construct Team Founder
Unread hot topic
81 11,418
NathanClearyMusi's avatar
Unread hot topic
0 Favourites
Real coding option
38 3,719
VampyricalCurse's avatar