Skip to content

Defold export Z value from layer order #3214

@thejustinwalsh

Description

@thejustinwalsh

After exporting to a defold tilemap the user must open the tilemap in defold and assign z values to each layer to have it match the order that was defined in the Tiled project to ensure the tilemap renders correctly.

The z value that a user would use here is somewhat specific to their project but generally Defold defaults to -1 to 1 for z range with -1 being far and 1 being near.

What would be the best approach to allow for the user to export directly from Tiled without the need to reset the z values of each layer on each export?

Considerations that come to mind are:

  • Any sprite objects that need to render between tiled layers could effect the desired z value of each layer
  • Defining a range for each layer... ie.e 0.1, 0.2 0.3 vs 0.0001 0.0002 0.0003

Would CustomProperties be a good solution here to override a z value and just have each layer default to some sane export z value based on it's order ad listed in the project layers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing featureIt's not just a feature, it's a feature that really should be there!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions