Open ghost opened 9 years ago
Could you tell a bit more about that. I or rather let me break this up in questions: 1) Where do you usually get that tileset from? Is it generated by some kind of software, do you draw it, is it downloaded? 2) How do you see "explaining" to Overlap2D the region data (what image is where on the tileset?)
Generally we use Atlas packs generated by libGDX texture packer. it crunches separate images into one big sprite atlas, and it also has data about region locations, so overlap2d can read that.
1) Well any of your options do apply, especially the last two, since you can, for the first one, workaround better. 2) Maybe by some additional JSON/XML file.
Well you do have that when you use TexturePacker it has it's additional data file, and images the way you are used to. Why not use it? It's pretty standard.
Although on the second thought, I do get it. you can import tile set and just specify the grid size, and Overlap2D can cut it for you. would be a neat feature.
Yes, this would be very useful!
For me the way of adding assets to Overlap2D is pretty unusal. Most of the time I'm having a big tileset with all stuff in it, so crunching that up would be a huge pain and thus being able to use just specific areas of a given texture would be succulent.