MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 3 4 5 6 7 … 16 Next »
Removing separation in tilesets?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 3 4 5 6 7 … 16 Next »
Removing separation in tilesets?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 3 4 5 6 7 … 16 Next »
Removing separation in tilesets?
Mark All Posts Read Today's Posts

Removing separation in tilesets?
United States VinnyVideo
Can't have an avatar without a Shy-Guy
Site Developer
Main Site Moderator Site Developer/Webmasters Wiki SysOp Big Help Submitter Super Reviewer (2) Wiki Contributor Sprite Comp Runner-Up Minigame Comp Winner Minigame Comp Runner-Up Minigame Comp Top 5 (3) Music Comp Winner Music Comp Runner-Up Music Comp Top 5 (2) Drawing Comp Top 5 Game of the Month Winner NCFC Contributor (4) Secret Santa (5) MFGG 17th Anniversary MFGG 18th Anniversary MFGG 19th Anniversary Ye Olde MFGGe Retro Game Jam Participant MFGG Awards 2010 Winner MFGG Awards 2011 Winner MFGG Awards 2012 Winner MFGG Awards 2013 Winner MFGG Awards 2014 Winner MFGG Awards 2015 Winner MFGG Awards 2017 Winner (3) MFGG Awards 2019 Winner MFGG Awards 2024 Winner
#1
01-05-2021, 10:43 PM
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...

  ↳
Vert
Eternal wage slave
Members
#2
01-06-2021, 07:48 AM
Just set the tile separation?

  ↳
United States VinnyVideo
Can't have an avatar without a Shy-Guy
Site Developer
#3
01-06-2021, 09:40 PM
@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.
Course clear! You got a card.

[Image: CourseClear.gif]


  ↳
Simpson55
Koopa
Members
Iso Collab Contributor Sprite Comp Top 5 Minigame Comp Winner MFGG 18th Anniversary Ye Olde MFGGe Retro Game Jam Participant
#4
01-07-2021, 12:23 PM
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.

  ↳
SuperSledgeBro
Hammer Bro
Members
Iso Collab Contributor MFGG 19th Anniversary
#5
01-07-2021, 02:00 PM
You can program a tool to do that in Game Maker itself, using a for loop and the function "draw_background_part".
[+]Spoiler
[Image: V4bzhla.gif]

  ↳
United States VinnyVideo
Can't have an avatar without a Shy-Guy
Site Developer
#6
01-07-2021, 08:42 PM
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.
Course clear! You got a card.

[Image: CourseClear.gif]


  ↳
Spain WasabiCatto
Your local demolitionist cat!
Main Site Admin
Global Moderator Forum Admin Forum Moderator Main Site Admin Main Site Moderator Submitter Iso Collab Contributor (2) Sprite Comp Runner-Up Minigame Comp Winner (2) Minigame Comp Top 5 (3) Special Comp Winner Egg Hunter NCFC Contributor (3) Secret Santa Holiday Tree MFGG 17th Anniversary MFGG 18th Anniversary MFGG 19th Anniversary MFGG Awards 2012 Winner MFGG Awards 2013 Winner MFGG Awards 2017 Winner MFGG Awards 2018 Winner MFGG Awards 2019 Winner MFGG Awards 2023 Winner (3) MFGG Awards 2024 Winner
#7
01-08-2021, 04:19 AM
Didn't RII wrote a program to remove separation from tile sheets?
[Image: Vb8vjwW.png][Image: uIrDfRP.png][Image: Jd3PZ8y.png][Image: BvmA5Pf.png][Image: LAKfOPp.png][Image: 10CGjip.png][Image: gEIdmj2.png]

[Image: 8GCySLU.png]

"shy guys are wall plugs confirmed" - Vitiman on Club Saturn Ex

  ↳
SuperSledgeBro
Hammer Bro
Members
#8
01-08-2021, 08:15 PM (This post was last modified: 01-08-2021, 10:39 PM by SuperSledgeBro.)
I made this code in Game Maker Studio, it draws the tileset you want without the separation:
Quote:tileamount_w = 10
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)
}
Specify 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.
[+]Spoiler
[Image: V4bzhla.gif]
[-] The following 1 user Likes SuperSledgeBro's post:1 user Likes SuperSledgeBro's post
  ↳ VinnyVideo
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
Forum Jump:

Mario Fan Games Galaxy - Powered by MyBB | MFGG Staff | Contact Us

Linear Mode
Threaded Mode