2d_warrior
Member
Is there any way to find the width, and height of a tile layer. Width meaning the x of the first tile in the left direction to the x of the last tile + the tile's width in the right direction. Height meaning the y of the first tile in the up direction to the y of the last tile + the tile's height in the down direction. Finding how many tiles are in each direction in the tile layer would also help me get the result. I'm assuming I don't already know how wide or high the given tile layer is. I'm talking about an in game tile layer (an arrangement of tiles), not the tile set resources, if that was ambiguous.
Edit:
So I tried tilemap_get_width(i), but this just gives me how many could fit in the room horizontally, not the amount of tiles from the first horizontally placed to the last horizontally placed. It count's the empties before and after.
Edit:
So I tried tilemap_get_width(i), but this just gives me how many could fit in the room horizontally, not the amount of tiles from the first horizontally placed to the last horizontally placed. It count's the empties before and after.
Last edited: