Closed ManPython closed 3 weeks ago
What is this issue actually about? What do you expect me to do?
I'm trying enhance function to draw 4x4 if map is 32x32 and sprite tile 64x64 or 128x128, etc. as bigger. Not have experience with extensions, looks easy to modify, but can't resolve this case. Maybe you can help?
The Large Tile Stamp tool as I wrote it should already do that, unless I misunderstood what you're trying to do. It dynamically determines how many cells to "skip" over based on the size of the tile. For for example, if your grid size is 32x32, then a 64x64 tile will be drawn every other cell, and a 128x128 tile will be drawn every 4th cell, ensuring no overlap between tiles.
If your goal is to do something different, I recommend writing your own script from scratch, using mine only as reference to help you find the relevant parts of the Tiled API. That way, you won't have to deal with strange irrelevant code, and anyone trying to help you will have a better idea of what you're trying to do because they won't be distracted by irrelevant code. Also, the issues section on this repo is for people who need help using the scripts in this repo or find a problem with them, it's not the place to get help with writing your own.
Your script also not working in the way as predicted - not filling 4 cells as 64x64 sprite in 32x32 grids. I was sure that only corners was painted and focused due image: https://github.com/mapeditor/tiled/issues/3436#issuecomment-1361696016
I tried do something like this: LargeTileStampTool2/LargeTileStampTool2.js To resolve this: https://github.com/mapeditor/tiled/issues/4036#issuecomment-2295423012
https://github.com/eishiya/tiled-scripts/blob/98150bdb532d0517e292bdb04d963ab1b8f76108/Large%20Tile%20Stamp%20Tool/LargeTileStampTool.js#L1