How do I get the child's instance variable inside families

Get help using Construct 2

Post » Sun May 15, 2016 5:58 pm

In your capx though, you have given the Family an Instance Variable of "HP", and both objects within the Family each have an "HP" instance variable..?
B
6
S
2
Posts: 34
Reputation: 512

Post » Sun May 15, 2016 6:05 pm

:oops: O jeesh... nevermind.

"If you add an instance variable to a family, all the object types in the family inherit the instance variable."
B
6
S
2
Posts: 34
Reputation: 512

Post » Sun May 15, 2016 6:08 pm

It picks both variables, family, and instance, even though only the family is referenced.
That's what you call an undocumented "feature".
I wouldn't rely on it.
Image ImageImage
B
168
S
50
G
164
Posts: 8,236
Reputation: 105,591

Previous

Return to How do I....?

Who is online

Users browsing this forum: sublimate and 2 guests