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
22
S
10
G
1
Posts: 71
Reputation: 3,213

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
383
S
225
G
86
Posts: 24,119
Reputation: 190,561

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
22
S
10
G
1
Posts: 71
Reputation: 3,213

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
56
S
18
G
9
Posts: 634
Reputation: 9,398

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
203
Posts: 3,583
Reputation: 115,060

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
22
S
10
G
1
Posts: 71
Reputation: 3,213

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
203
Posts: 3,583
Reputation: 115,060


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 8 guests