How do I detect if 2 objects match

Get help using Construct 2

Post » Mon Oct 27, 2014 7:52 pm

im trying to figure out the best way to do this....


show a button for x seconds.

if the user clicks the button during the time its shown, then action

if the user does not click during the show then action

what the best way to tell if the button has not gotten pressed during the time it was shown?
thanks
Dan
B
8
S
3
G
1
Posts: 87
Reputation: 1,493

Post » Mon Oct 27, 2014 8:13 pm

Set a variable button_thisThing_pressed=0 and change it to 1 when pressed. In the event that hides the button; if button_thisThing_pressed=0 then you know it was never pressed.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
65
S
17
G
8
Posts: 636
Reputation: 9,333


Return to How do I....?

Who is online

Users browsing this forum: part12studios, Yahoo [Bot] and 9 guests