Suggestion: Select/Replace all instances of an object

Discussion and feedback on Construct 2

Post » Mon Apr 07, 2014 9:08 pm

There have been many times while working on my project that I've wanted to replace every instance of an object, either on one specific layout, or every layout in my current project.

I'm unaware if there's currently a way to do this, but I think it would be great if I could right click on an object, then select either "all instances in layout" or "all instances in project" which is pretty self explanatory.

Additional functionality would be to replace all objects selected, which could be done with either another function in the right click menu, or an additional field in the object properties itself which lists the object name, but is editable (either drop down, text, or both.) This way you can select the object, and change the field in the object properties and voila! All selected instances are replaced.
B
11
S
3
G
2
Posts: 69
Reputation: 1,179

Post » Mon Apr 07, 2014 9:59 pm

Right Click > Replace Object

Right Click > Replace Object > Select Which Object to Replace > Replace Object with

The catch is that the object you are replacing must have the same vars/types and behaviors.

As a guide. Use families most of the time. it will save you grief.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018

Post » Tue Apr 08, 2014 10:10 am

I think what BigHid Ikarus means is to have a context menu "select" and "replace" within the layout view, not the event sheet, just like the "align" and "z-order" menus.

While you can't replace the instances that exist in your layout view, you can select them all at once by clicking on any specific object either on the Objects Window or the Projects Window list. After that, you can move them around or delete them all together from the layout.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Thu Apr 10, 2014 5:32 am

eli0s wrote:I think what BigHid Ikarus means is to have a context menu "select" and "replace" within the layout view, not the event sheet, just like the "align" and "z-order" menus.

While you can't replace the instances that exist in your layout view, you can select them all at once by clicking on any specific object either on the Objects Window or the Projects Window list. After that, you can move them around or delete them all together from the layout.


What he said. :)

I'm aware you can select them all from the Projects Window, I just wish there was more functionality in changing objects on a global scale across your project.

Right now I have to go in and manually replace every instance of an object I have placed, which gets difficult depending on how many are placed and how many layouts the object is present in.
B
11
S
3
G
2
Posts: 69
Reputation: 1,179

Post » Thu Apr 10, 2014 12:09 pm

Yes, I understand.
For the time being, If both objects are of the same object type (sprite), perhaps importing the images and/or the animations of the new object to the old one could prove to be a more efficient workflow time-wise. Especially if both objects have common instance variables and behaviors.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Mon Feb 29, 2016 6:05 pm

BigKid Icarus wrote:Right now I have to go in and manually replace every instance of an object I have placed, which gets difficult depending on how many are placed and how many layouts the object is present in.


This is kind of crazy, because I'm facing exactly the opposite problem. I want to change an object in one layout but because it was created when the layout was copied from an earlier layout, changing this object (in this case a background image) changes it in the original layout as well, so ruining the original layout!!

How can I prevent this unwanted behaviour. Is there something I should tick/untick in a preferences dialog that I have missed?

"To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment."

Ralph Waldo Emerson
B
10
S
2
G
1
Posts: 56
Reputation: 1,300


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests