01-08-2021, 08:15 PM
(This post was last modified: 01-08-2021, 10:39 PM by SuperSledgeBro. Edited 1 time in total.)
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.
tileamount_h = 10
tilesize_w = 16
tilesize_h = 16
sep = 1
background_id = bg_tileset
for (i = 0; i < tileamount_w; i += 1)
{
for (j = 0; j < tileamount_h; j += 1)
draw_background_part_ext(background_id, (tilesize_w + sep) * i, (tilesize_h + sep) * j, tilesize_w, tilesize_h, (tilesize_w * i), (tilesize_h * j), 1, 1, c_white, 1)
}