Skip to content

Implement xflip/yflip/rotation flags in tilemap layers #3603

Description

@dacap

A task from #977 is the implementation of xflip/yflip/rotation flags for each individual tile instance in the tilemap. This is something planned in the .aseprite format in Cel chunks:

  • For cel type = 3 (Compressed Tilemap)
    WORD Width in number of tiles
    WORD Height in number of tiles
    WORD Bits per tile (at the moment it's always 32-bit per tile)
    DWORD Bitmask for tile ID (e.g. 0x1fffffff for 32-bit tiles)
    DWORD Bitmask for X flip
    DWORD Bitmask for Y flip
    DWORD Bitmask for 90CW rotation
    BYTE[10] Reserved
    TILE[] Row by row, from top to bottom tile by tile
    compressed with ZLIB method (see NOTE.3)

https://github.com/aseprite/aseprite/blob/main/docs/ase-file-specs.md#cel-chunk-0x2005

This issue was created so some users can keep track/subscribe to the implementation of this feature.

Activity

  1. added
    featureFeature request, or something should be improved
    on Nov 28, 2022
  2. added this to the v1.3 milestone on Nov 28, 2022
  3. self-assigned this
    on Jul 4, 2023
  4. modified the milestones: v1.3.x, v1.3.1 on Jul 4, 2023
  5. moved this from Todo to In Progress in Attachment Systemon Jul 12, 2023
  6. linked a pull request that will close this issueFlip flags for tiles #3980on Jul 24, 2023
  7. moved this from In Progress to Todo in Attachment Systemon Sep 4, 2023
  8. modified the milestones: v1.3.1, v1.3-rc7 on Oct 5, 2023
  9. moved this to In Progress in Aseprite v1.3~v1.4on Oct 5, 2023
  10. modified the milestones: v1.3-rc7, v1.3.1 on Nov 8, 2023
  11. moved this from In Progress to Done in Aseprite v1.3~v1.4on Nov 13, 2023
  12. dacap commented on Nov 13, 2023

    @dacap
    MemberAuthor

    Now we can flip/rotate tiles using Space+X or Space+H (flip horizontally), Space+Y or Space+V (flip vertically), Space+D (flip diagonally), Space+R (rotate).

    We can also enable automatic match of flipped tiles when we create a new tileset or change a tileset properties:

    Screenshot 2023-11-13 at 16 35 16

  13. added a commit that references this issue on Jan 29, 2024
    d39a656
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureFeature request, or something should be improvedtilemap

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions