How do I click on the background to deselect everything

Get help using Construct 2

Post » Mon Nov 07, 2016 9:28 pm

Hi guys,

I have a game in which I select objects by clicking on them (more specifically, touching them).

I need an event which deselects all my selected objects when I touch the background, but not when I touch one of the objects.

I though a simple "On tap gesture" would suffice on the background, since the tap wouldn't go through the objects, but I guess I was wrong. Is there a way to make objects "unpassable" for the click/touch ?

Thanks!
B
10
S
2
Posts: 32
Reputation: 672

Post » Mon Nov 07, 2016 9:56 pm

You should be able to do this by adding a "Not touching Object" condition to the event.

Tap background + Not touching Selectable --> Deselect
B
50
S
23
G
17
Posts: 291
Reputation: 12,432

Post » Mon Nov 07, 2016 10:38 pm

Hey Sup with that? , thanks! Now I feel silly for not seeing it. Cheers!
B
10
S
2
Posts: 32
Reputation: 672


Return to How do I....?

Who is online

Users browsing this forum: tdcostas and 7 guests