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
367
S
217
G
82
Posts: 23,278
Reputation: 184,271

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
52
S
15
G
4
Posts: 579
Reputation: 6,378

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
19
G
159
Posts: 3,404
Reputation: 92,499

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
71
S
19
G
159
Posts: 3,404
Reputation: 92,499


Return to How do I....?

Who is online

Users browsing this forum: lamar and 5 guests

cron