Sprite is werid

Lionhall

New member
So how come when I add my sprite to the game it looks like how it does in the photo and not the actual sprite?
 

Attachments

  • DBC41B1C-7502-4D5E-8DE6-0EBB3FF06D06.jpeg
    DBC41B1C-7502-4D5E-8DE6-0EBB3FF06D06.jpeg
    98.4 KB · Views: 8
make sure you have a palette file for the character,
make sure the images are indexed color 255 or 256 and make sure that they either have a transparent color or that they are saved with an alpha channel on gimp or photoshop
 
make sure you have a palette file for the character,
make sure the images are indexed color 255 or 256 and make sure that they either have a transparent color or that they are saved with an alpha channel on gimp or photoshop
I am about to pull all my hair off my head!. I really hate working with gifs!
my images are all on alpha channel and they are all transparent and look transparency on Gimp.
but in the game some gifs are shown with color background instead of transparency.
I am even using "palette one" too!
Do you know why this is happening?
Please see the images,
thank you
 

Attachments

  • transparency.png
    transparency.png
    45.9 KB · Views: 3
  • No transparency in the game.png
    No transparency in the game.png
    22.4 KB · Views: 3
Also it's best to use an actual colour for transparency instead of using transparency as transparency because if not done correctly the program will automatically pick a colour and it might be a colour you are already using on the sprite and assign it to transparency.

7daM4BH.png


As O'ilu suggested
 
Because your background color isn't the first one in the color table.
I don't think this is the issue as I have tried to move it to the first slot of the color table.
After I moved the transparent color to the first slot, there is another color acts as the transparency, so weird...
It looks like there are multiple transparent colors behind it for some reasons.
the pictures I sent you guys weren't the original as I copied and pasted them onto the paint app just to show you guys.
I am attaching my original file so guys can see what's going on.
Can you guys please take a look at it? thank you so much
 

Attachments

  • RD_IntroFX_Front06.gif
    RD_IntroFX_Front06.gif
    22.9 KB · Views: 3
Last edited:
I don't think this is the issue as I have tried to move it to the first slot of the color table.
no, its not - its the last one:
1687180409655.png
As @danno suggested, use a different color rather than the transparency itself (or white), as its a terrible idea to use grey

1687180464047.png

Paint the background using a strong color, like 0 255 0 and set force it as the background color like this:

1687180516267.png
 
no, its not - its the last one:
View attachment 3967
As @danno suggested, use a different color rather than the transparency itself (or white), as its a terrible idea to use grey

View attachment 3968

Paint the background using a strong color, like 0 255 0 and set force it as the background color like this:

View attachment 3969
The transparent color was black, and I moved it to the first slot, but for some reasons the black color in the first slot is no longer a transparent color, then color in the last slot becomes a transparent. It is very weird.
As I mentioned earlier, for some reasons, the transparent color is no longer a transparent color after I moved it to the first slot. It is weird somehow there are multiple transparent colors behind it.
Can you try to move it to the first slot, save it, and then re-open it and see if it is still the transparent color?
I am using Gimp btw
Thank you
 
The transparent color was black, and I moved it to the first slot
Using colors as Black, White, Grey is a terrible idea, trust me. You have to pick a color that isn't present or closer to any other color on the image.
If you have the original image in png 24bits, I sugges you to first paint the background with a stronger color and them convert the image.

As I mentioned earlier, for some reasons, the transparent color is no longer a transparent color after I moved it to the first slot
Because moving colors on the spot isn't sufficient to make it transparent, if you have any color with values close to the indexed color values.
For example, if your BG color is 0 0 0 but you have a 1 1 1 anywhere on the image, depending of your settings, you will get both as either 1 1 1 or 0 0 0, screwing up the transparency.

Converting images from 24bit with alpha transparency to 8 bit could be very tricky if you do not know what you are doing. The problem isn't the full transparency, but the mutiple levels of transparency allowed on 24bit images.

If this is as stage, you use it as a 24bit colour image. But it will be heavier to load/display.

Can you post here the original image?
 
Last edited:
Using colors as Black, White, Grey is a terrible idea, trust me. You have to pick a color that isn't present or closer to any other color on the image.
If you have the original image in png 24bits, I sugges you to first paint the background with a stronger color and them convert the image.


Because moving colors on the spot isn't sufficient to make it transparent, if you have any color with values close to the indexed color values.
For example, if your BG color is 0 0 0 but you have a 1 1 1 anywhere on the image, depending of your settings, you will get both as either 1 1 1 or 0 0 0, screwing up the transparency.

Converting images from 24bit with alpha transparency to 8 bit could be very tricky if you do not know what you are doing. The problem isn't the full transparency, but the mutiple levels of transparency allowed on 24bit images.

If this is as stage, you use it as a 24bit colour image. But it will be heavier to load/display.

Can you post here the original image?
I am at work right now.
lol I can see that I really don't know what I was doing as far as converting from 24bit png to 8 bit gif as I did not know how tricky it is to convert them.
I got these gif files from the SFV Akuma Raging Demon; I capture the frames in 1080p resolution then resize the frames.
After that, I spent alot of time removing the backgrounds from those png frames in GIMP.
Then I used ImageMagick software to batch convert from 24-bit png frames to 8-bit gif files.
Since I could not get all gif files in 1 palette color, so I had to use "palette one"
but then I started getting these transparent colors showing up in the game whenever I do raging demon skill....

So based on your suggestion, I need to make sure the transparent color from 24-bit png is a strong color like green before converting.
Now after reading your suggestions, it does make alot of sense for me now.
Because the transparent color wasn't a strong color, this is the reason why it's causing to have multiple background colors on 8-bit gif files.
I will try your guideline when I get home and will let you know.
Thank you very much for your knowledge and help!
 
Using colors as Black, White, Grey is a terrible idea, trust me. You have to pick a color that isn't present or closer to any other color on the image.
If you have the original image in png 24bits, I sugges you to first paint the background with a stronger color and them convert the image.


Because moving colors on the spot isn't sufficient to make it transparent, if you have any color with values close to the indexed color values.
For example, if your BG color is 0 0 0 but you have a 1 1 1 anywhere on the image, depending of your settings, you will get both as either 1 1 1 or 0 0 0, screwing up the transparency.

Converting images from 24bit with alpha transparency to 8 bit could be very tricky if you do not know what you are doing. The problem isn't the full transparency, but the mutiple levels of transparency allowed on 24bit images.

If this is as stage, you use it as a 24bit colour image. But it will be heavier to load/display.

Can you post here the original image?
Your guideline really works to reduce headaches!
Thank you very much for your help!
 
Also it's best to use an actual colour for transparency instead of using transparency as transparency because if not done correctly the program will automatically pick a colour and it might be a colour you are already using on the sprite and assign it to transparency.

7daM4BH.png


As O'ilu suggested
Thank you
 
Back
Top Bottom