Open the sprite in GIMP
Image > Mode > Indexed
Generate Optimum Palette
Windows > Dockable Dialoges > Palettes
Find the colormap of the image you're working on in the palette window. Duplicate it so you can edit it
Check the color in the top left index position of the palette. (I don't show this in the screenshot, so you better know where top and left is!)
Get the color info from that index and then go to the color that should be there. The greenish-blue one seen next frame. Edit it
This time note the numbers for the color here and replace them with the ones you noted earlier. You'll replace it with R=8 G=8 B=8 in this example. Note the 0, 149, 149 you'll need that.
Go back to the 1st index (now shown in example) and change it to the color you replaced. This is important because the color in this index position is always the invisible color in MUGEN.
Close out the current sprite and reopen it or convert it back to RBG mode.
Windows > Mode > Indexed
This time we'll use a custom palette. Select the palette you've edited and apply it to the sprite.
Export as .png or .pcx and you're finished!
Now that you have your palette made you can easily apply it to more sprites if needed.
A quick google shows you can use BIMP to batch process your work (automate applying the palette to several sprites)
If there are other batching programs that can help do this please post them. Of course Photoshop has this built in as well.
Handy tutorials/instructions if you need more help in areas I discussed.
http://docs.gimp.org/en/gimp-palette-dialog.html http://docs.gimp.org/en/gimp-image-convert-indexed.html http://docs.gimp.org/en/gimp-concepts-palettes.html VIDEO VIDEO orAnother way to index a sprite is to:
- open the image;
- index it (like in the 1st tutorial)
- go to Colors -> Map -> click Rearrange Colormap:
Spoiler, click to toggle visibilty
- the colormap window appears, and you can freely move the background colour wherever you want.
Spoiler: Color Map (click to see content)
But if you want to insert the sprite in a mugen character you have to put it as first colour, like this:
Spoiler, click to toggle visibilty
- press Ok and the sprite is indexed correctly.