How do I check if any of two buttons is clicked or touched

Get help using Construct 2

Post » Fri Dec 02, 2016 3:16 pm

HI, I am looking for away to check if any of two buttons is clicked or touched,

for example, I want to add action if button 1 or button 2 is clicked or touched.

thanks in advance
B
4
Posts: 20
Reputation: 240

Post » Fri Dec 02, 2016 3:45 pm

use global variable isTouched = 0

isTouched ACTION System set isTouched = 1
Set text txtText " Button touched or clicked "
B
262
S
48
G
15
Posts: 2,009
Reputation: 42,183

Post » Fri Dec 02, 2016 4:19 pm

you can just use the OR function..?
B
18
S
4
Posts: 90
Reputation: 1,267

Post » Fri Dec 02, 2016 4:37 pm

yes if you code in properly also Boolean
B
262
S
48
G
15
Posts: 2,009
Reputation: 42,183


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 18 guests