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
256
S
39
G
15
Posts: 1,982
Reputation: 41,032

Post » Fri Dec 02, 2016 4:19 pm

you can just use the OR function..?
B
15
S
4
Posts: 84
Reputation: 1,148

Post » Fri Dec 02, 2016 4:37 pm

yes if you code in properly also Boolean
B
256
S
39
G
15
Posts: 1,982
Reputation: 41,032


Return to How do I....?

Who is online

Users browsing this forum: Cubeeo and 20 guests

cron