How do I enable collision only on a specific layout?

Get help using Construct 2

Post » Thu Apr 10, 2014 7:31 pm

I have several layouts, where basically only the main one has solid objects. The others are background layouts with no collision detecion and solid objects. However, on one of the background layouts I need to check for collision between two objects, but they collide with objects on layouts in front of them. Can I avoid this somehow? Seems to be a bit heavy to check for collisions on every tick and disable it when the object is colliding with all the objects in other layouts and then enable it when it collides with the other object on the same layout..?
B
14
S
3
Posts: 123
Reputation: 1,571

Post » Thu Apr 10, 2014 7:42 pm

I guess it was my 8 Direction Movement behaviour assigning solid or something. Moving the object with actions did the trick I believe. Sorry about that.
B
14
S
3
Posts: 123
Reputation: 1,571

Post » Fri Apr 11, 2014 1:37 am

if unit on layout then
collision.disable
else
collision.enable

just like it?
B
17
S
7
Posts: 360
Reputation: 2,202


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests