Uhmm i have 100s of tileset pngs how can i generate tsx files for every single one of them i know i can do one by one i hope there’s a direct method to generate empty tsx file for some png through script i read documentation i didnt saw a method there to generate a tsx
TSX is just a file format. You can save files as TSX using scripting, but you don’t create TSX files directly because what you create are instead Tilesets (and TileMaps). So, what you’ll want to look into is the Tileset part of the scripting API. Create a new Tileset
object, then generate your tiles with Tileset.loadFromImage()
.
thank you that helped