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
172
S
50
G
183
Posts: 8,439
Reputation: 115,597

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests