Games How does the x2 Object Type work in Tiled?

Discussion in 'Game Development' started by Computersmith64, Sep 27, 2018.

  1. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    I don't understand how to use the x2 object type. I've created a new map (using a "roads" tileset that I have) & imported the x2 Object Type, but I can't figure out how to associate it with the map. When I look at the map that came with the example (map1.json) it shows an object layer (ObjectLayer1) with a sub-layer (x2) - but I can't seem to get that in my map.

    - Colin.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    It takes some time to get used to Tiled editor. Overall it is quite simple to use.
    1. Add an object layer:

    [​IMG]

    2. Add objects and change their type to x2.
    If everything is configured properly then you should now see the list of custom properties.
     
  3. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    Thanks Erel - so every object on the map must be x2?

    - Colin.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Yes*

    * Other objects will be ignored. This is useful if you want to add objects based on Tile images and then add a x2 object with the same shape. You can see it in many of the examples.
    [​IMG]
     
    Computersmith64 likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice