How do I Stop this sound from playing?

0 favourites
  • 2 posts
From the Asset Store
This Student Workbook uses both Construct 3 & 2 encoding. It supplies client-side & php "back-end" encoding.
  • I'm embarrassed to say that I still have NOT figured out how to do this simple task. This is what I'm trying to do:

    1. After 1 seconds, play the sound "heartbeat1" and have it loop.

    2. After 5 seconds, STOP the sound "heartbeat1" and then have it start playing "heartbeat2" instead.

    However.. I CANNOT get it to STOP playing the first sound. Instead, the first sound ("heartbeat1") just keeps playing at the same time as the second sound ("heartbeat2").

    Anybody know how to simply make "sound1" STOP playing at the 5 second mark?

    This is what I tried:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Doh! I FINALLY just figured it out. Although most of you likely already knew this, here is the answer in the event another novice (like me) has the same problem:

    When you first tell it to play the audio, and you pick which audio file to play,and decide whether to loop the sound or not, at the bottom of that menu it will say:

    Tag (optional): "" <-- What you need to do is NAME the sound file between the quotes. Even though the filename is "heartbeat1" you STILL need to 'tag' the filename (call it whatever you want -- but probably just easier to 'tag' it with the same filename.

    Then, when you tell the program to stop playing the sound, you type in between the quotes the name that you 'tagged' it. Therefore, every single time you add a sound to your game, I suppose your should also 'tag' it with a name.

    Hope that helps.

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