Making a sprite black

Blitz3D Forums/Blitz3D Programming/Making a sprite black

Fader(Posted 2003) [#1]
Hi.
I am trying to make a black sprite for the purpose of a simple shadow. I tried Entitycolor shadow,0,0,0 for the sprite. What happens it just becomes invisible. I think it has something to do with some blend mode or something.

Thanks,
Fader


jhocking(Posted 2003) [#2]
The default blend mode for sprites is "add." In add blend mode colors can only lighten, so black becomes invisible. Use EntityBlend to set your sprite to some other blend mode (the normal non-blending mode is 1, but for shadows you often want "multiply" blend mode to make the white background transparent.)


Ross C(Posted 2003) [#3]
or you could just make your shadow in whatever editing program you used and make it color a very very dark grey, a couple of shades above black.

don't think the player would notice a very very very dark grey :)


Fader(Posted 2003) [#4]
Entitymode 2 worked. I had to create a new shadow image that was white background with a black blended circle. I had the opposite before.

Thanks all!
Fader