- Home /
2D - draw sprite only on one background color
Hello guys, so i got a problem and i dont know what to do with it. I have 2D game for android .. i have blood sprite and i have black ground and black cubes to jump over. What i want is:
When i die player jump (no problem)
Blood particles start (no problem)
Draw sprite (*.png) of blood on ground and box
Ground and box are only black. Sprite of blood is only transparent picture of red spots. Question is -> is there some kind of shader to draw blood sprite on ground and box only but no on background. Or is there some way to make sprite visible only on black color?!
Ilustration: picture 1. how it looks now ... picture 2. how i want to have it
Your answer
Follow this Question
Related Questions
Changing background color every time I score 0 Answers
How to change color of sprite as it moves over different backgrounds 2 Answers
Incorrect Sprite Color on Android build 0 Answers
How to access SpriteRenderer Color from a shader? 1 Answer
Using a single element(texture) of a sprite sheet in shader? 0 Answers