1. SkilLP

    OP SkilLP Member
    Newcomer

    Joined:
    May 2, 2020
    Messages:
    23
    Country:
    Germany
    THIS GUIDE IS FOR USING SPRITES WITH NFlib WHICH NEEDS THE SPRITES IN 8bpp MODE

    Since some people already asked, here is a step-by-step guide on how to use GIMP to prepare an image for GRIT:

    Method 1 (recommended):
    1.: Put the -gB8 flag into the command that converts the sprite with grit. That ensures that grit is outputting 8bpp instead of the usual 16bpp
    2.: Now you can use GRIT to convert the image so the sprite/background or whatever you made can be used in-game

    Method 2:
    1.: Open the image in GIMP.
    2.: Click on Image, then in the dropdown go to Mode and select Indexed and in the dialog click Convert.
    3.: Go to Windows>Dockable Dialogs and click on Colormap. This will enable a tool on the right side of GIMP. If you keep it there, you won't have to redo this.
    4.: You may need to add a bunch of colors (using the + symbol under the pallete in the colormap window) so you have about 30-40 colors (you can see the index of the color in Color index)
    5.: Click on File and Export As and save it as a .bmp image.
    6.: A dialog with the title Export Image as BMP should pop up. Click on Compatability Options and enable Do not write color space information.
    NOTE: If you don't get this dialog, you might have to restart GIMP or open a file that already is a .bmp image.
    7.: Now you can use GRIT to convert the image so the sprite/background or whatever you made can be used in-game

    As you can see, method 1 is WAY shorter and easier, but I only today figured out that you can do that instead of using method 2, which was the original method this guide described
     
    Last edited by SkilLP, Mar 4, 2021
  2. slatedspoon

    slatedspoon Newbie
    Newcomer

    Joined:
    Mar 11, 2020
    Messages:
    2
    Country:
    United States
    Thank you so much for this!
     
    SkilLP likes this.
  3. TheRedfox

    TheRedfox blep
    Member

    Joined:
    May 17, 2012
    Messages:
    229
    Country:
    Netherlands
    use a sprite editor with good indexed color palette support, like aseprite :>
     
  4. panchenko9b

    panchenko9b Newbie
    Newcomer

    Joined:
    Jan 5, 2021
    Messages:
    6
    Country:
    Swaziland
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Preparing, images,