how to loop unloop tracks and sound effects

Get help using Construct 2

Post » Mon Nov 04, 2013 8:18 am

Hello all, i found it very difficult to figure out how to stop a sound from looping when it starts to play and i feel completely retarded for not figuring out this simple problem.

the way i have it set up atm is

When AXE is created ->> Play "AXE WOOSH" on loop at -10DBS

When AXE is destroyed ->> STOP "AXE WOOSH"

or

When AXE is destroyed ->> MUTE "AXE WOOSH"
When AXE is destroyed ->> MUTE "AXE WOOSH.ogg"
When AXE is destroyed ->> MUTE "AXE WOOSH.m4a"

etc

and this does not seem to work at all...
B
5
S
1
Posts: 88
Reputation: 653

Post » Mon Nov 04, 2013 10:32 am

Hmm, I have used various audio thingies by now, and that never was a problem..

What was a problem for me occassionally is that I generated more "play Xsomething" then i realised, which lead to sound continously being geenerated / played.

Also, I have a fallback in on of my apps, where somehow the music kept playing on layout load/reload ... so I added a stop all.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Mon Nov 04, 2013 11:42 am

i have been using the stop all as well, however now that music has been added i cant use this short cut anymore because obviously it makes the music sound silly.
B
5
S
1
Posts: 88
Reputation: 653

Post » Mon Nov 04, 2013 12:04 pm

You have to use tags for the audio and not the audio name.

so, play "AXE WOOSH" with tag "AUDIOTAG"
stop audio with tag "AUDIOTAG"
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 04, 2013 6:39 pm

Ah ha! so that's how it works, Thanks!
B
5
S
1
Posts: 88
Reputation: 653


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests