Using Alphatest Sprites For Xhair But Transparancy
CHAMois
Join Date: 2003-02-09 Member: 13339Members
<div class="IPBDescription">wont work</div> I can make indexalpha sprites all day and have them work, but alphatest sprites wont go transparant, so they just sit there as a big box in the middle of my screen
I want to use these instead of indexalpha because the color always seems washed out no matter what level of transparancy I have them set to
I want to use these instead of indexalpha because the color always seems washed out no matter what level of transparancy I have them set to
Comments
Did you set the palette correctly for the sprite? (Last color will be treated as transparent, no exceptions.)
And it would also be nice if we could see the picture you're working with.
heres a picture of the xhair and the pallet. I've tried making a hundred, alphatest just won't display transparant, I get all that black in game.
Do I have to change something else to use alphatest xhairs?
An easier method, though, would be to just resort to IndexedAlpha, since the crosshair is of simple design and single-colored. Just draw out the same crosshair, using near-pure white (254, 254, 254) and then set the index color to pure green (0, 255, 0). The resulting crosshair will be solid.
I'll try making only the last color of the pallet black
edit: yeah i didnt even notice the first color on the pallet was black, hehe