Skip to content

TilemapParser - data objects x & y undefined when equal 0 #1818

@MaksJS

Description

@MaksJS

With a JSON map exported from Tiled, in the Tilemap class when I call this.objects.buildings, x & y properties are undefined whereas they should equal 0 as shown in the JSON below

{
         "color":"#0008a4",
         "height":50,
         "name":"buildings",
         "objects":[
                {
                 "height":512,
                 "name":"",
                 "properties":
                    {

                    },
                 "type":"",
                 "visible":true,
                 "width":512,
                 "x":0,
                 "y":0
                }, 
                {
                 "height":512,
                 "name":"",
                 "properties":
                    {

                    },
                 "type":"",
                 "visible":true,
                 "width":512,
                 "x":1536,
                 "y":0
                }

Seems like there is a problem with the TilemapParser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions