Does not work to stop a specific audio

0 favourites
  • 6 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Hello,

    When I want to stop from playing a specific audio file (for example: audio -> stop with a tag "anysound" with anysound.ogg & m4a in the library), I think that it does not work. If I use the general stop command without any tag it works, however I would like to be able to choose which sound to stop if more than 1 sound is playing.

    Is there something that I miss, or it is just a bug ;)

    Thanks!

  • Please see how to report bugs. Can you share a .capx?

  • Yes, of course <img src="smileys/smiley1.gif" border="0" align="middle">

    Here is it:

    TestSound.capx

    Actually the problem is on the 3-rd line of the event sheet.

    When the command is Audio -> Stop "do2" the sound just does not stop.

    However if there is no tag for the specific audio it works.

    Thank you in advance!

  • It's not a bug. You play the audio with an empty tag (""), then try to stop the tag "do2", and no audio is playing with that tag. (Remember to use tag names, not audio filenames). It works in Firefox and Chrome if you change the tag to "do2" in both places.

  • Wow, I tried this, but first it did not work, however it works when we both use audio file name like a tag and the optional tag below.

    Thank you very much for your time explaining this! :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think it should be mentioned that sound tags should NOT match the filename of the sound in your project folder. This is important when you want to run conditions of stopping and starting a sound with a single sprite/button/touch. I spent 2 hours to discover this after painstaking going through all the methods. If you change the tag to something other then the filename, it works fine.

    Andrew.

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