Disable a button from a CLICK

Get help using Construct 2

Post » Wed Jan 29, 2014 2:09 am

Hi Constructors,

Is there a way to disable a graphics button from a click event?
Currently, the button has a function to do a specific task and I want it to disable in a certain time. I tried having a button on top, both buttons are still working when the top button is being clicked.

Thanks and regards,
rex
B
23
S
6
G
3
Posts: 39
Reputation: 4,759

Post » Wed Jan 29, 2014 2:40 am

Hi @morex . Please try using an instance or global variable.

I include a quick example: https://www.dropbox.com/s/te38b7nob6p47a4/disableclickexample.capx

Good-Luck!
B
18
S
4
G
1
Posts: 25
Reputation: 1,779

Post » Wed Jan 29, 2014 2:47 am

Hi @REDVWIN,

That should work!
Thanks a lot. Appreciated your quick response.
B
23
S
6
G
3
Posts: 39
Reputation: 4,759

Post » Wed Jan 29, 2014 3:45 am

No problem. Glad I was of assistance. :D
B
18
S
4
G
1
Posts: 25
Reputation: 1,779


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, senecaa and 22 guests