Making a sprite black
Blitz3D Forums/Blitz3D Programming/Making a sprite black
| ||
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 |
| ||
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.) |
| ||
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 :) |
| ||
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 |