How do I Stop this sound from playing?

Get help using Construct 2

Post » Mon Mar 10, 2014 11:16 pm

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:
Image
B
9
S
2
Posts: 111
Reputation: 1,010

Post » Mon Mar 10, 2014 11:30 pm

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. :)
B
9
S
2
Posts: 111
Reputation: 1,010


Return to How do I....?

Who is online

Users browsing this forum: zsoldiers and 6 guests