How do I - avoid collisions with invisible layers

Get help using Construct 2

Post » Sat Oct 18, 2014 12:17 pm

I have a drag and drop editor. I have all the droppable elements on either one of two layers, level1 and level2. the user switches between these levels so they can place some things on one and some things on the other. this is mostly controlled by setting the visibility or invisibility of the layers. There is already a condition which limits the placement of one of these elements if it overlaps another element, however the problem i have is that the elements won't place if they are overlapping an invisible element on the other layer. Is there a way i can get around this? perhaps set the collisions to be only for visible instances or instances on the same layer?
B
3
Posts: 1
Reputation: 177

Post » Sat Oct 18, 2014 12:41 pm

There is the system - layer is visible condition, if used in the right way it could help..
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 » Sat Oct 18, 2014 1:01 pm

Is it possible to Minimise the Collision mesh of the object on the layer below....I would say if you could...that might help...

If you can flatter your base layer to a singular object ..you may have no collision

Other wise ..we would need to see your capx to see exactly what is going on

hope that helps
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
35
S
13
G
8
Posts: 318
Reputation: 7,685

Post » Sat Oct 18, 2014 5:18 pm

I would add variable layer for the objects and when the active layer is not same disable collisions or solid.
B
34
S
9
G
3
Posts: 517
Reputation: 5,226


Return to How do I....?

Who is online

Users browsing this forum: Nicolas951, rayolf and 20 guests