How do I double click!

Get help using Construct 2

Post » Fri Aug 08, 2014 10:13 am

Hello, so what am i trying to do is kind of a double click. When the user press the button for the first time it stops the music and when it press it again it starts it. The problem with my code is that after i add the second click (to turn the music back to on) code, i can not press the button!
You do not have the required permissions to view the files attached to this post.
B
14
S
3
G
1
Posts: 69
Reputation: 950

Post » Fri Aug 08, 2014 10:23 am

Please upload the capx. In the meantime.. use one touch event, and an else to check the variable is 0 or 1.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Fri Aug 08, 2014 10:32 am

Use an instance variable with music button.
On Touched Music Button
music = 0
else

see capx example
easybutton.capx
You do not have the required permissions to view the files attached to this post.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Fri Aug 08, 2014 10:42 am

You could do it like this
You do not have the required permissions to view the files attached to this post.
B
251
S
39
G
15
Posts: 1,964
Reputation: 40,721

Post » Fri Aug 08, 2014 10:54 am

Thank you all, @DUTOIT what you have done it is exactly what i needed, thank you.
B
14
S
3
G
1
Posts: 69
Reputation: 950


Return to How do I....?

Who is online

Users browsing this forum: bclikesyou, blackhornet, brunopalermo, mekonbekon and 21 guests