Enable/Disable from layers

Get help using Construct 2

Post » Thu Feb 07, 2013 6:53 pm

Is there some way to enable/disable a behaviour of a group of objects that belong to a layer in one only action. For example, disable "drag and drop" of 10 different objects that are all in the same layer in one action, not one by one. Families dont work for this in my case because in each layout the group of objects to enable/disable the behaviour is different and there would be many families to create.


It would be great for me something like:
If event -> System: Ignore objects in Layer (2)

thnks
B
7
S
1
Posts: 11
Reputation: 1,267

Post » Thu Feb 07, 2013 8:46 pm

EDIT:

Sorry, I haven't worked with the drag and drop behavior that much and I think my advice was unhelpful as a result as there are no dragdrop "events" necessary to initiate the dragging.

I think families are your best bet. You shouldn't need to create more than one unless the objects you're draggign/dropping aren't all sprites as the family should be able to be all inclusive I think. I'm not sure how behavior triggers and actions work with families because I can't make an example capx with the free version of Construct. But when you want to disable the behavior you should try adding a "family is on layer X" condition with a dragdrop "family - set dragdrop disabled" action.

Again, sorry I started off on the wrong track, if I could help you more with families I would.Phyvo2013-02-07 22:37:05
B
6
S
1
Posts: 40
Reputation: 917


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, mnashwan, shinkan, stylie1, tarek2 and 11 guests