Process for moving to Families?

Get help using Construct 2

Post » Mon Aug 12, 2013 10:12 pm

So I'm at a point where I've built a prototype with a player sprite getting things feeling pretty good. I've realized now after the fact that I should have done the player as a family (I'm going to try having different player characters with slightly different rules to them, but that share a lot of stuff).

I'd like to create a Family with all the instance variables and behaviors from my one sprite and then change my events to reference the family instead of the individual sprite.

However, I can't just make duplicate instance variables in the family (families can't have instance variables named the same as a member's instance variables). I can't delete the member's variables first because that will mess up my events.

Are there any best practices for this sort of situation? Should I just set up an "empty" family with the instance variables and duplicate all my events with the new references?
B
11
S
2
Posts: 87
Reputation: 1,112

Post » Mon Aug 12, 2013 10:38 pm

Just going to jump in here and say that I too am all ears if anyone has any suggestions.

This issue has been one of the most frustrating parts of C2 that I've encountered. I now design with families in mind from the beginning, so it doesn't really affect me too much, but for newcomers and those moving from the free to personal editions, it's a real killer.
B
57
S
15
G
11
Posts: 912
Reputation: 12,606

Post » Mon Aug 12, 2013 11:34 pm

ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Mon Aug 12, 2013 11:34 pm

Ashley wrote a tutorial on thisLittleStain2013-08-12 23:35:00
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 12, 2013 11:54 pm

Perfect! I was thinking I'd have to do something along these lines but did not know about the Replace Object thing.

Thanks.
B
11
S
2
Posts: 87
Reputation: 1,112


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests