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
20
S
9
G
1
Posts: 68
Reputation: 3,057

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
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

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
20
S
9
G
1
Posts: 68
Reputation: 3,057

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
49
S
14
G
3
Posts: 540
Reputation: 5,611

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
67
S
19
G
121
Posts: 3,196
Reputation: 72,879

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
20
S
9
G
1
Posts: 68
Reputation: 3,057

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
67
S
19
G
121
Posts: 3,196
Reputation: 72,879


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests