How do I make toggle-able sound and music?

Get help using Construct 2

Post » Tue Mar 27, 2012 9:22 pm

I have this and on my options layout I have toggle-able sounds. The only thing they do is change a global variable depending on what that variable already is and change the animation frame to be relevant to that variable. For some reason however it doesn't work. I'm not sure if it's the animation that doesn't work or the variable..
Nothing goes unanswered!
B
22
S
5
G
1
Posts: 430
Reputation: 3,383

Post » Tue Mar 27, 2012 10:22 pm

fixed it for you (at the same time u got less events now):
http://dl.dropbox.com/u/65731657/toggleable.capx

I've had to put Music = 1 ? 0 : 1 because your frame 1 was the 'off' state and frame 0 the 'on' state

If you switched the frames you could use 'set animation frame to Music'

I also added a debug textbox to track your variables, i've left it there so u see how to do itWishy2012-03-27 22:26:15
B
22
S
11
G
9
Posts: 133
Reputation: 6,572

Post » Tue Mar 27, 2012 10:31 pm

Thank you :)
Nothing goes unanswered!
B
22
S
5
G
1
Posts: 430
Reputation: 3,383


Return to How do I....?

Who is online

Users browsing this forum: luisgmolina, R0J0hound, Rezzon71, Yahoo [Bot] and 25 guests