I would like better refactoring tools

Discussion and feedback on Construct 2

Post » Wed Dec 10, 2014 9:27 pm

Hi developers of Construct 2

I would really like better refactoring tools.

This is my scenario.

I have an object with x number of instance variables. At some point in my development, I realize that it would make sense to create an object family and that some of these instance variables should be moved to the family.

First problem is that If I create an instance variable on the family it can not be created with the same name. So I have to find all usages of the original instance variable and change that to the new family instance variable (this is why I would like to see a find / replace feature)

Then I have to delete the object instance variable and rename the family instance variable.

Find and replace in the event sheets, is a pain.
Moving instances and objects around is a pain.

Construct 2 is cool, but sometimes it would be so nice if I could just edit the source code directly :-)
B
5
S
1
Posts: 59
Reputation: 493

Post » Wed Dec 10, 2014 11:02 pm

Yeah, migrating instance variables up to family variables is a bit of a pain. What kind of solution do you think would be best?
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sun Dec 21, 2014 10:33 am

I agree with you. I think this is Construct2's greatest (one of the very few) weakness, and I'd love to see some kind of improvement about this.
B
12
S
2
G
1
Posts: 32
Reputation: 756

Post » Sun Dec 21, 2014 6:40 pm

yes, I'd want this as well! I've ran in to this situation many times. Sometimes I can avoid it by planning my project well, but it'd be nice to have.
B
43
S
19
G
65
Posts: 1,105
Reputation: 37,949

Post » Mon Dec 22, 2014 12:31 am

That's why I program my game on paper first .
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099


Return to Construct 2 General

Who is online

Users browsing this forum: newt and 32 guests