However, it took him quite a long while to seperate an entrie set individually like that (about 214 sprites took approximately a days worth), which gave me an idea, so I spent a few hours last night writing up a little program to help speed things up:
This program will automatically align the bitmap of a sprite up and blank out the emtpy tiles ready for importing to SonMapEd, let's take this bitmap for example:
It's a single sprite randomly place in the middle of the bitmap file with no effort. After draggin and dropping it onto that program, my program will re-arrange it to:
Automatically aligning it up the smallest it can go and blanking out the unused tiles all ready to be imported!
- Place a sprite of your choice randomly in a bitmap file like this for example.
- Save the file and then drag and drop that file onto "AlignSprite.exe"
- The file is now convert and prepared
You can also use a batch file to convert multiple sprite files at once using something like:
@echo off AlignSprite.exe WalkFrame01.bmp = AlignSprite.exe WalkFrame02.bmp = AlignSprite.exe WalkFrame03.bmp = AlignSprite.exe WalkFrame04.bmp = AlignSprite.exe WalkFrame05.bmp = AlignSprite.exe WalkFrame06.bmp = AlignSprite.exe RunFrame01.bmp = AlignSprite.exe RunFrame02.bmp = pause
- The bitmap image must be 24-bit format.
- The bitmap image cannot be too big, the biggest I could go was this (though more newer machines than mine should be able to do bitmaps bigger than that, either way you can import the ending sprites with no problem).
- My program will "assume" the very top left pixel of the bitmap is the transparant colour.
- My program will blank the empty tiles with the standard pale purple colour FF 00 FF (255 000 255).
If you have any questions, feel free to ask.