Promote instance var to a family instance var

Discussion and feedback on Construct 2

Post » Sat Dec 21, 2013 12:04 am

Is there a reasonable way to refactor the events so that I don't have to manually go through every single usage and change the variable to the family variable before I delete the instance variable?

You could say the same thing for behaviors and effects as well.dunebeetle2013-12-21 00:05:25
B
5
S
1
Posts: 11
Reputation: 420

Post » Sat Dec 21, 2013 12:11 am

ImageImageImage
B
71
S
22
G
242
Posts: 3,734
Reputation: 134,994

Post » Sat Dec 21, 2013 12:27 am

My objects are already in the family, and breaking them apart in an attempt at merging them would be more trouble than it's worth I'm assuming.
B
5
S
1
Posts: 11
Reputation: 420

Post » Sat Dec 21, 2013 12:38 am

If you create a family variable with the same name as one of your child instance variable, you should be given an option to "promote" the variable to family scope, and all usages in the project are replaced with the family usage.

If this was implemented for variables, behaviors and effects, I would hail it as the greatest added feature of all time.
B
5
S
1
Posts: 11
Reputation: 420


Return to Construct 2 General

Who is online

Users browsing this forum: mihirolover, Refeuh, technofou and 15 guests