How do I create a sound toggle button

Get help using Construct 2

Post » Sat Mar 22, 2014 6:12 pm

Hi,

i've tried to create a sprite with two frames (set & unset). I gave this sprite a Boolean OnSound and added a global variable Sound (int. 1). The on/off function works, but something is strange with the sounds. It doesn't play normally. It sounds like every tick the sounds startet from new.

I don't know what to do.. :( Maybe someone can help me. Here you find my sample project. Feel free to post your improvments and tipps!

Thanks :)

toggle_sounds.capx
You do not have the required permissions to view the files attached to this post.
Image Image iTunes: Match3 | Google Play: Match3
B
102
S
37
G
31
Posts: 1,162
Reputation: 28,869

Post » Sat Mar 22, 2014 6:43 pm

Here is an example of how I've done it, seems to work right:

Image
B
25
S
10
G
3
Posts: 154
Reputation: 2,843


Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948 and 12 guests