Sounds and Music strings

Get help using Construct 2

Post » Sun Dec 23, 2012 11:53 am

How do you add a tag to a music and/or soundFX?
Been looking all over for an answer but no such luck.
Need it for muting certain soundsTheNormalGeek2012-12-23 13:20:20
(\__/)

(='.'=)

(")_(")
B
23
S
10
G
1
Posts: 74
Reputation: 3,244

Post » Sun Dec 23, 2012 1:08 pm

Your question does not seem to make a lot of sense (what does adding a string to audio mean and why would you want to do it?) - can you explain more about what you're trying to do?
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Sun Dec 23, 2012 1:19 pm

I think I used the wrong word in that post, I want all music with a certain tag to be muted. How do I then add the tag?TheNormalGeek2012-12-23 13:19:50
(\__/)

(='.'=)

(")_(")
B
23
S
10
G
1
Posts: 74
Reputation: 3,244

Post » Sun Dec 23, 2012 3:09 pm

If you have Personal licence or higher you can make short work of this with Families: https://www.scirra.com/manual/142/families

If not:

A) Buy the Personal license, it's the best Christmas present you'll ever get!

B) You can make clever use of variables and events, so you could have a sprite that triggers a bool, and the true/false state is a conditional for your sound events
B
59
S
21
G
9
Posts: 641
Reputation: 9,787

Post » Sun Dec 23, 2012 3:29 pm

When you Play the sound, you assign it a tag at that point. Use the same tag to, later, mute any with the a given tag.
ImageImageImage
B
71
S
21
G
231
Posts: 3,691
Reputation: 129,358

Post » Sun Dec 23, 2012 3:52 pm

Thanks for the help, my game keep playing small bits of the sounds even when muted, is this just while testing or is it how it is going to be? (How can you avoid it?)TheNormalGeek2012-12-23 15:53:04
(\__/)

(='.'=)

(")_(")
B
23
S
10
G
1
Posts: 74
Reputation: 3,244

Post » Sun Dec 23, 2012 4:40 pm

This shouldn't happen. You'd have to provide the CAPX for full debugging help.
ImageImageImage
B
71
S
21
G
231
Posts: 3,691
Reputation: 129,358


Return to How do I....?

Who is online

Users browsing this forum: evillair, Exabot [Bot], Solomon, Yahoo [Bot] and 8 guests