How do I deactivate touch events under specific object?

Get help using Construct 2

Post » Thu Sep 03, 2015 6:59 am

Hi!

Sometimes I want to "pause" my game: I put semi-transparent layer upon the game and I want to deactivate all touche events under the layer. Can I define object not "transparent" for touches? And get just the touch events from the layer?
B
10
S
2
Posts: 71
Reputation: 696

Post » Thu Sep 03, 2015 7:14 am

Create a group on your event sheet and put all the events you want to pause inside that group. Then on the condition that pauses the game include the "set group deactivated" command.
B
17
S
7
Posts: 280
Reputation: 2,522

Post » Thu Sep 03, 2015 3:27 pm

You can compare an object inside the layer, or create a boolean, or compare opacity
B
22
S
9
G
4
Posts: 66
Reputation: 3,775


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Yahoo [Bot] and 5 guests