How do I make invisible things not clicable

Just started using Construct 2? Post your questions here

Post » Sun Sep 18, 2016 12:19 pm

I have a menu that is triggered by a button and get invisible / visible. Whoever I'm still able to click menu options and not able to click things behind the menu.~
My menu looks like this:
Image
Image
B
4
Posts: 4
Reputation: 210

Post » Sun Sep 18, 2016 1:24 pm

You can put your menu click logic in a Group. Then you activate the group when the menu layer is visible, and deactivate it when the menu layer is made invisible.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Sun Sep 18, 2016 4:52 pm

Create global variable: touch_input = 0. 0 value is the default.
Add another condition in touch event: if global variable touch_input = 0.

Create action:
Enable touch event: set 0 in touch_input.
Disable touch event: set 1 in touch_input.

sorry for my english :/
B
68
S
17
G
2
Posts: 94
Reputation: 4,742

Post » Sun Sep 18, 2016 9:08 pm

Thanks everyone :D
B
4
Posts: 4
Reputation: 210


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest