How do I Disable All Collisions in an Invisible Layer?

Get help using Construct 2

Post » Sat Feb 07, 2015 11:08 pm

Is there a way to disable/enable all collisions for a certain layer that is set invisible/visible?

Saves a lot of work when you have your game and main menu's in the same layout but can't find a way to do it like that and was wondering if it's possible. If not then it should be a nice new future for C2.

Thanks in advance.
B
46
S
9
G
5
Posts: 110
Reputation: 3,782

Post » Sat Feb 07, 2015 11:25 pm

just make your events for you menu in a subevent that uses the System Condition "IS layer visible"
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Sat Feb 07, 2015 11:37 pm

@volkiller730 Thanks, but I know how to do it like that and other ways, but it was much easier when you where able to enable all layer collisions in one single event. Especialy when you are adding more stuff in the game later on as what was planned ;)
B
46
S
9
G
5
Posts: 110
Reputation: 3,782

Post » Sun Feb 08, 2015 1:59 am

You could add the objects to a family and do this:

is [family] on layer? then [family] set collision enabled/disabled
B
20
S
8
G
4
Posts: 195
Reputation: 3,555


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests