Skip to content

PyTMX expects spacing after the last tile of each row #43

@anonymousAwesome

Description

@anonymousAwesome

If a tileset uses spacing PyTMX expects there to be the same space between each tile. The problem is that PyTMX also apparently expects there to be the same spacing after the last tile in each row. If a row of 16-pixel tiles has 1 pixel of spacing between every tile but no spacing after the last tile, PyTMX will look at the last tile in the row, say "that has only 16 pixels instead of 17; it couldn't be the tile I want" and move onto the next row.

This happens once for each row, so by the time PyTMX gets to the fourth row it's four tiles off from the intended tile.

This bug may also apply to the bottom column, I haven't checked to see.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions