Health Effect

Started by
1 comment, last by minibutmany 10 years, 10 months ago

I want to make something already done by a lot of games , which is when I am taking so much hits from enemy red screen drawn like the following , using XNA 4.0:

after it's drawn and I am still alive I want to be removed slightly as in the call of duty !!!

4r9xgose284oedd6g.jpg

Advertisement

Render-to-texture the scene, then make a new shader that combines the rendered image with the blood image (with transparency in the middle).

This is known as a post-process.

To make it fade away, adjust the alpha(opacity) of the image, which is demonstrated in this stack overflow thread:

http://stackoverflow.com/questions/6632723/how-to-make-a-texture2d-50-transparent-xna

Stay gold, Pony Boy.

This topic is closed to new replies.

Advertisement