Set volume with the tag does work while the sound plays, but it is not permanent.

Not favoritedFavorited Favorited 0 favourites
  • 2 posts
From the Asset Store
Grenade Sound Library contains: 135 sounds 50 grenade sounds and 85 surface sounds
  • Hi again, fellow Construct people. I have an annoying volume slider problem.

    I am trying to use tags for sounds and volume. Let me simulate:

    1) I spawn a giant, and allied_giant_on_field starts playing with the "sfx" tag.

    2) I open my menu and lower sfx volume, it works while I decrease slider value.

    3) When I close the menu and summon another giant, it plays the sound, even with the SFX slider at zero.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to store the current SFX volume in a variable and use that variable when playing new sounds.

    I suggest creating an AudioPlay function and calling it whenever you need to play a sound. Inside the function, you can calculate the volume correctly based on the tag and game settings. This also would make it easier to modify the entire sound system later — you won’t have to go through all your individual "Play" actions every time you want to change something, like renaming a tag or adjusting the volume.

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