(SOLVED) How do I USE SILENT MODE?

Get help using Construct 2

Post » Mon Nov 23, 2015 7:22 pm

hi in my app i added an icon whe nthe player click on it it set silent the music+ sounds, BUT ITS NOT WORKING....
Image
Last edited by imothep85 on Mon Nov 23, 2015 8:40 pm, edited 1 time in total.
B
32
S
12
G
6
Posts: 1,624
Reputation: 8,573

Post » Mon Nov 23, 2015 7:37 pm

For the last event, you have to add a condition "Else".
Construct 2 events work from the top to the bottom.
So when you click the button, and if Sound_var = 1, it changes it to 0. -> This means the next line of code is now true, because Sound_var now equals 0.
Else condition, on the other hand, runs the second part only if the first part wasn't true, and vice-versa.
“The best time to plant a tree is 20 years ago. The second best time is now.”
B
31
S
7
G
4
Posts: 380
Reputation: 4,524

Post » Mon Nov 23, 2015 7:59 pm

i get the "Else" (not valid here)
B
32
S
12
G
6
Posts: 1,624
Reputation: 8,573

Post » Mon Nov 23, 2015 8:06 pm

Image
Image
B
61
S
23
G
7
Posts: 1,461
Reputation: 10,686

Post » Mon Nov 23, 2015 8:40 pm

THANKS korbaach :D
B
32
S
12
G
6
Posts: 1,624
Reputation: 8,573


Return to How do I....?

Who is online

Users browsing this forum: DJKeefy, mekonbekon, SputnikCZ and 9 guests