Skip to content

Isometric tilemaps are broken #3513

@mateosss

Description

@mateosss

CCTMXLayer.js getTileAt bug at line 427, bad vertexZ value

in https://github.com/cocos2d/cocos2d-html5/blob/develop/cocos2d/tilemap/CCTMXLayer.js#L427

the value of vertexZ is always being 0, so when you use this method, the selected tile changes its original Z order.

here is the diff between the last version I used that worked, in this one it uses the _atlasIndexForExistantZ function that has been removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions