Why button with collision disabled reacts on tap gesture

Get help using Construct 2

Post » Sun Mar 15, 2015 4:30 pm

Hi when i touch,tap object that has collisions disabled , it still working. I thought when i disable collisions on sprites , the tap ot touch should stop working? How can i make it work so it wont react on tap?
B
11
S
3
G
1
Posts: 411
Reputation: 1,766

Post » Sun Mar 15, 2015 4:43 pm

Hi,
I'm not sure collision disabled avoid the tap event to be triggered.
You could add a specific boolean variable on objects named like "EnableTap" and set this variable to false when you want to disable them.
So on your tap event you check if EnableTap is set to true before executing the corresponding actions
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Sun Mar 15, 2015 4:48 pm

and the object is invisible as well, so the tap works on everything , visible/invisible , collision, no collision. ah thanks, have to do it another way
B
11
S
3
G
1
Posts: 411
Reputation: 1,766

Post » Sun Mar 15, 2015 5:07 pm

if it's invisible you can add a condition "Object is visible" on your tap event
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Sun Mar 15, 2015 5:08 pm

already fixed , thank you for advice :-)
B
11
S
3
G
1
Posts: 411
Reputation: 1,766


Return to How do I....?

Who is online

Users browsing this forum: Calfuso, DarkSharkPvP, Thirstyy and 27 guests