Layer collisions

Get help using Construct 2

Post » Wed Jan 01, 2014 7:50 pm

Is it possible to disable/enable all collisions on a specific layer?
B
13
S
4
Posts: 61
Reputation: 1,028

Post » Wed Jan 01, 2014 8:03 pm

Yes: https://www.scirra.com/manual/28/layer

Also, check out the "is on layer" event.
B
84
S
46
G
24
Posts: 528
Reputation: 21,066

Post » Wed Jan 01, 2014 8:41 pm

I should mention Im using physics collision. I added all the objects with collision on layer 1 to a family, and when the player touches an object to disable the collision of that family. But family physics actions do not seem to be working. It was glitching out at first and I realised that it was because of two physics behaviours in the sprites, so I deleted the original ones to have just the family physics behaviour.
B
13
S
4
Posts: 61
Reputation: 1,028

Post » Wed Jan 01, 2014 9:03 pm

Durp... I didn't realise you had to set what object not to collide with, and I was just disabling collision with itself.
B
13
S
4
Posts: 61
Reputation: 1,028

Post » Wed Jan 01, 2014 9:14 pm

If you want to disable all collisions for a specific object type, you should be able to set collision to disabled without specifying which objects to stop colliding with. This doesn't work w/ asm.js-based collisions yet, but hopefully will soon.digitalsoapbox2014-01-01 21:14:39
B
84
S
46
G
24
Posts: 528
Reputation: 21,066


Return to How do I....?

Who is online

Users browsing this forum: t redeemed t and 8 guests