Moving instance variable to object family

Get help using Construct 2

Post » Fri Aug 31, 2012 5:48 pm

Bought my full version of Construct today

So I'm cleaning up my project now that I have access to object families. I have a entity which contains a instance variable called "Selected", and the entity type I would like to move into a new object family. If I try and give the family a variable of "Selected", it will say I need to remove the entity instance variable first.

The problem is, if I remove the instance variable from the entity first (so I can recreate it in the object familiy), all the actions I have setup will be deleted.

Is there a way to move an entities variable to an object family without losing all the events?

Cheers boolean2012-08-31 17:49:13
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Post » Fri Aug 31, 2012 6:06 pm

I found a manual way of doing this that others might find helpful. I only found out I could do this by accident!

Turns out if you edit a condition or action, if you click the 'back' button it doesn't go back to the event sheet, it actually goes back through the settings of the action/event, all the way back to the object type. This lets you change what object type it is using without recreating the action. I wonder if there's others who didn't notice this either

So I renamed the instance variables I had, added it to the object family, and then went through all my events/actions and modified the type of object they are associated with. Took a few minutes of work, but it works.

If anyone knows of an easier or different way, please do share. boolean2012-08-31 18:07:22
B
24
S
4
G
1
Posts: 244
Reputation: 3,462


Return to How do I....?

Who is online

Users browsing this forum: mjj1990 and 6 guests