How do I use these families correctly!

Get help using Construct 2

Post » Mon Sep 19, 2016 8:31 pm

I am trying to use families, but sometimes the code works correctly and sometimes they don't.

Families: Power source, Power Switch, and Power System.

Power source is overlapping Power system => Turn on switch
Power switch is on && power source is overlapping => Power is on

I have a couple different power systems and when I run the code like this it doesn't discriminate which power system is actually getting the power.

I also want to make a code where when you take the power source off, it turns that respective system switch off, but it turn all the switches off when I use families.

I have resorted to writing events for each individual switch to make it work for what I need.

tl;dr How do I make these families work correctly?

Let me know if you need more clarification.
B
7
S
1
Posts: 57
Reputation: 728

Post » Tue Sep 20, 2016 4:09 pm

Because the family treats all objects in the family as one. If you are trying to distinguish specific power systems you need to give them each an ID and use that to reference them (or use the UID).
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 43 guests