1
\$\begingroup\$

I managed to get a list of all the tiles in a layer of a tmx map by iterating through the IReadOnlyList<TiledTile> Tiles in TiledTileLayer and enumerating the values into another list. But I need to be able to iterate through that list and check for a certain property. However, TiledTile has no properties variable and no getProperties() method. How would I do this?

\$\endgroup\$
2
  • \$\begingroup\$ First link I got when looking for "monogame tiledtile" was this : community.monogame.net/t/tiledtile-properties/7581/4 \$\endgroup\$ Commented Jan 12, 2017 at 13:46
  • \$\begingroup\$ The link you provided goes over using an object layer. Object layers are different than regular layers. \$\endgroup\$
    – Hobbs2000
    Commented Jan 12, 2017 at 15:49

1 Answer 1

1
\$\begingroup\$

Correct me if I'm wrong but I think the properties you're after exist on the Tileset Tile.

There's been a lot of work going into the Tiled feature of MonoGame.Extended lately. Even since you asked this question a lot of things have changed. If there's something missing, raising a github issue is a good way to get some eyeballs on it.

Sorry if I've missed something. I checked the Tiled editor to see what properties you might be talking about and I'm not sure how you'd go about setting Properties at the tile level.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .