![]() |
Removing separation in tilesets? - Printable Version +- MFGG Forums (https://forums.mfgg.net) +-- Forum: MFGG (https://forums.mfgg.net/forumdisplay.php?fid=4) +--- Forum: Developer Discussion (https://forums.mfgg.net/forumdisplay.php?fid=10) +--- Thread: Removing separation in tilesets? (/showthread.php?tid=2630) |
Removing separation in tilesets? - VinnyVideo - 01-05-2021 Is there a quick and easy way to remove separation between tiles in tilesets to make it easier to select multiple tiles at once in Game Maker? Example of tileset with separation Example of tileset with no separation I should probably know this by now... RE: Removing separation in tilesets? - Vert - 01-06-2021 Just set the tile separation? RE: Removing separation in tilesets? - VinnyVideo - 01-06-2021 @Vert Yeah, I know you can set separation to 1 (or whatever the number is) to import tilesets quickly. However, I was looking for an automated way to convert a tileset with separation to one without separation. RE: Removing separation in tilesets? - Simpson55 - 01-07-2021 GameMaker doesn't have this feature, nor does Tiled which is a specialized software. I think you'd have to do it manually. But I guess writing a program to remove the separation would be quite easy in Java, Python or even JavaScript. You'd simply have to copy the source image and skip every n'th row/column of pixels. RE: Removing separation in tilesets? - SuperSledgeBro - 01-07-2021 You can program a tool to do that in Game Maker itself, using a for loop and the function "draw_background_part". RE: Removing separation in tilesets? - VinnyVideo - 01-07-2021 Yeah, it probably wouldn't be too tough to program such a tool in Java or Python - or even in Game Maker itself. Maybe I'll try that - or maybe I'll just remove the separation manually. RE: Removing separation in tilesets? - WasabiCatto - 01-08-2021 Didn't RII wrote a program to remove separation from tile sheets? RE: Removing separation in tilesets? - SuperSledgeBro - 01-08-2021 I made this code in Game Maker Studio, it draws the tileset you want without the separation: Quote:tileamount_w = 10Specify the amount of tiles to draw with "tileamount_w" and "tileamount_h" and the number of pixels in the separation in "sep". It doesn't save to an individual PNG file, but you can take the easy route and just... Press the print screen button. |