Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Spritesheet Generator  (Read 4976 times)

0 Members and 1 Guest are viewing this topic.
Spritesheet Generator
« on: February 24, 2017, 06:51:18 am »
  • Let's do this.
  • *
  • Reputation: +4/-0
  • Offline Offline
  • Gender: Male
  • Posts: 211
I made this program to help me out while I was importing spritesheets from Spriters Resource to Game Maker.
Goal of this program is to split sprites into a spritesheet of equal horizontal length.

How it works:
First of all, this program looks for vertical lines where the sprite doesn't appear so each of your sprites need to be separated by at least one pixel.
After that it looks for the sprite with the longest horizontal length, splits the sprites, and outputs the result.

How to use:
The first picture shows those sprites which are loaded(They need to be in the same directory as the program and you need to name it "sprite.png").
Background color is not important, you can use whatever you want, even invisible. Just crop and trim the sprite before you start the program.
After that you start the program and voilĂ  you get the second picture as the output.
The program also creates a folder Sprites where single sprites are stored.

Probably you will need to adjust some single sprites later, but the program still does a lot of work for you.
« Last Edit: February 25, 2017, 04:50:56 am by Rayo »
Logged
This is one of many tales Hylian lore speaks of...

Click here to check out my Deviantart!
  • Zelda Time Walker

Miles07

Knight of ERA
Re: Spritesheet Generator
« Reply #1 on: February 25, 2017, 01:18:46 am »
  • Long live the Chaos!!
  • *
  • Reputation: +14/-0
  • Offline Offline
  • Gender: Male
  • Posts: 608
If you have a Github link for the source code, maybe some of us can help refine it so that, for example, it can take any file input and output as a specified name.
Logged
I was talking to my friend last night, and he was mentioning about how in 1980, he thought the internet would become this amazing place where people from across the world would share ideas. I was telling him about how this project [KOT] has worked, lurching along for years and drawn by different people from across the globe, and he thought it was beautiful. And he was right, it's awesome. :D

Zelda Items Spritesheet album (OUT OF DATE) - (link here)
A Link Across Time project - (link here)
Boss Keys project (Metroid) - (link here)
Boss Keys project (Zelda) - (link here)
Boss Keys project Trello Board - (link here)
Re: Spritesheet Generator
« Reply #2 on: February 25, 2017, 04:52:22 am »
  • Let's do this.
  • *
  • Reputation: +4/-0
  • Offline Offline
  • Gender: Male
  • Posts: 211
Quote
If you have a Github link for the source code, maybe some of us can help refine it so that, for example, it can take any file input and output as a specified name.
I just attached the Game Maker file into the start post. I used Game Maker 8.1.

What this program still needs is to move single sprites to their correct position (after the main progress). Depending on a point which is given by the user.
I was not sure how to implement that so I haven't done that yet.
« Last Edit: February 25, 2017, 05:19:06 am by Rayo »
Logged
This is one of many tales Hylian lore speaks of...

Click here to check out my Deviantart!
  • Zelda Time Walker

Miles07

Knight of ERA
Re: Spritesheet Generator
« Reply #3 on: February 25, 2017, 09:01:00 pm »
  • Long live the Chaos!!
  • *
  • Reputation: +14/-0
  • Offline Offline
  • Gender: Male
  • Posts: 608
Also, does the program break when there is more than one row of sprites? Or does it calculate the spacing for ALL rows the same? Or is each row calculated separately from the others?
Logged
I was talking to my friend last night, and he was mentioning about how in 1980, he thought the internet would become this amazing place where people from across the world would share ideas. I was telling him about how this project [KOT] has worked, lurching along for years and drawn by different people from across the globe, and he thought it was beautiful. And he was right, it's awesome. :D

Zelda Items Spritesheet album (OUT OF DATE) - (link here)
A Link Across Time project - (link here)
Boss Keys project (Metroid) - (link here)
Boss Keys project (Zelda) - (link here)
Boss Keys project Trello Board - (link here)
Re: Spritesheet Generator
« Reply #4 on: February 25, 2017, 09:29:34 pm »
  • Let's do this.
  • *
  • Reputation: +4/-0
  • Offline Offline
  • Gender: Male
  • Posts: 211
Quote
Also, does the program break when there is more than one row of sprites? Or does it calculate the spacing for ALL rows the same? Or is each row calculated separately from the others?
It is only supposed to work for one row.
Logged
This is one of many tales Hylian lore speaks of...

Click here to check out my Deviantart!
  • Zelda Time Walker
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.046 seconds with 47 queries.