Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using "Collection of images" tileset in Tiled map causes all tiles to be placed by it to use the image of the first tile? #965

Open
skeets23 opened this issue Nov 23, 2024 · 0 comments

Comments

@skeets23
Copy link

skeets23 commented Nov 23, 2024

I created a "Collection of Images" tileset and used it to place multiple different images as tiles on my map.

For example, I placed image A, B, and C on the map. In the tiled editor, this is working fine.

A is large, 676x900
B is smaller, about 100x200
C is just 16x16

When the map renders in my game, it's rendering image A in all 3 places (although, the width and height match the image that is supposed to be there)

So where B is supposed to be on the map, a 100x200 version of A appears instead.

Since the size is correct, it does seem like MonoGame.Extended is recognizing that it's a different tile, but it's failing to get the correct image reference.

I know this tileset type was not supported in the past, but it looks like this pull request claimed to have added the feature?

#827

I'm using:

MonoGame 3.8.2.1105
MonoGame.Extended 4.0.3

UPDATE: I discovered it actually uses the first used tile for all locations. So if I erase tile A, it uses tile B for all instances of B and C.

Also, there appears to be a small bar appearing in the bottom left of the tile when the image for the tile is very large (676 x 900). The bar is not present in the original image or in the Tiled editor. Not sure if this is related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant