How do I, if there is a way to, keep my layers' settings consistent thru layouts?

Not favoritedFavorited Favorited 0 favourites
From the Asset Store
Create large maps with dynamic depth and precise sprite layering control in top-down games.
  • An update: as of r501 there are two new features in the Layers Bar modelled on the option C approach.

    Please back up your projects before trying them - they make complex project-wide changes, and in particular, currently replicating layers cannot be undone. If anything goes wrong it's possible they will make a real mess of your project, so take care.

    'Replicate layer across project' will copy the layer properties and the structure of all sub-layers (and their properties) to all other layers in the project with the same name. This means you can easily update layer properties, as well as adding, moving and deleting layers across the entire project. Note however that due to the aforementioned problem, renaming a layer will be counted as deleting the layer with the old name and adding a new layer with the new name.

    'Rename layer across project' is designed to solve that last problem by renaming every layer in the project with the same name.

    Let me know how it works out for you in your real projects!

  • Ashley I am elated to have this feature at long last :) I don't know if this would be possible cause the indexing might be tricky, but my only request (for now?) is to somehow let us choose if we want exceptions to layers that aren't in the list of layers being replicated.

    Say Layout A has...

    • Parent layer
      • Sub Layer A
      • Sub Layer B
      • Sub Layer C

    And Layout B has...

    • Parent layer
      • Sub Layer A
      • Sub Layer B
      • Unique Sub Layer
      • Sub Layer C

    What I'm proposing would allow me to replicate the parent layer in A, affecting all of the sublayers in B but leaving the Unique Sub Layer alone.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Do you mean a special "don't delete any layers" mode, or a specific "don't delete the layer with this name" mode?

    It's still quite tricky to handle such cases, because suppose in your example in Layout A, you move Sub Layer A after Sub Layer B, and then replicate it ignoring Unique Sub Layer. Should layer replication on Layout B move Sub Layer A after Sub Layer B (before Unique Sub Layer), or before Sub Layer C (after Unique Sub Layer)? It's easy to come up with one answer, but then one day you or someone else might need another answer. So then maybe you need a way to choose. But then you need to design some UI to express your intent, and I'm not sure how that would work. As you start trying to carve out exceptions then you get more tricky cases like this.

    One easier solution might be to have Unique Sub Layer on every layout and replicated as normal, but just left empty and unused on some layouts.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)