How do I make hidden layers unclickable?

Just started using Construct 2? Post your questions here

Post » Mon May 25, 2015 5:34 pm

Right now i am making game, and i thougth to make game inventory screen on separate layer, so i can easy show it and hide it when i need it, but i have problem with this method. Even if layer is hidden i can still click on the items from that layer and if clicked object have events that events will run. Is there any way to prevent this or what do you think what is the best method to this inventory showing and hiding?
B
14
S
3
G
1
Posts: 95
Reputation: 1,015

Post » Mon May 25, 2015 6:34 pm

Two solutions:

- Put all events concerning the inventory screen in a separate group and enable disable the group based on the visiblility of the layer..
- Add layer is visible conditions to all events..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon May 25, 2015 10:24 pm

Thanks LittleStain!
That helped me a lot!
B
14
S
3
G
1
Posts: 95
Reputation: 1,015


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests