Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How can I eliminate the white spaces in a character set?

I have some character sets which were drawn using a 256x256 pixels base for each pose. This would normally not be an issue, but my character sets have 8 directions and 8 poses, which accounts for a 2048x2048 pixels image. It's pretty huge. With these settings, a default PNG-8 bit image is around 100KB in size. I'm afraid when having too many sprites in a same map, this might cause some lagging.

My question is, is there some software that might help me eliminate the white/transparent marquee around my character's poses? What I'm looking for is to make images smaller and still have everything aligned. Otherwise, I'll have to do it by hand, or conceptualize some sort of algorithm to do this, which is a little bit more complex doing it than saying it. I figure someone has already thought of this. The following is an image depicting one of my character sets.



Does anyone know of such software or code?

Your help is greatly appreciated.
 
When you import it in to RPG Maker, left-click on the white space and it will show up transparent.

Or, go into GIMP/Photoshop, use the colour selector to select the white, then do whatever you do in your program of choice to make the white transparent/get rid of the white.
 
Pokémaniac":3f4swqye said:
When you import it in to RPG Maker, left-click on the white space and it will show up transparent.

Or, go into GIMP/Photoshop, use the colour selector to select the white, then do whatever you do in your program of choice to make the white transparent/get rid of the white.

You misunderstood me (or skimmed through the post). The white is already transparent. What I need to do is physically get rid of the space, but it's a little time-consuming. I'm searching my options.
 
The only think I can think of that'll make this the easiest to do by had is to find out the largest x and y value a frame takes up and then multiply it by how many frames there is on the sheet.

Get a grid set up in your preferred graphics program and copy and paste each frame in.

I know it's not a quick fix but I've not seen a program like the one you're after before. Just incase you do find one though it'd have to have a hot spot option for each frame, other wise the centre point may be off with some frames and will result in the animation becoming 'jumpy'.
 
Holder":993cs9n6 said:
The only think I can think of that'll make this the easiest to do by had is to find out the largest x and y value a frame takes up and then multiply it by how many frames there is on the sheet.

Get a grid set up in your preferred graphics program and copy and paste each frame in.

I know it's not a quick fix but I've not seen a program like the one you're after before. Just incase you do find one though it'd have to have a hot spot option for each frame, other wise the centre point may be off with some frames and will result in the animation becoming 'jumpy'.

Your idea's not so bad. It's what I already had in mind. However, I'm sure someone must've dealt with this before. There must be a software designed specifically for this. I just know it.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top