• Advertisement
Sign in to follow this  

xna drawing question

This topic is 2420 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm building a top down shooter and i want to make the screen flash a color of tint when you are hit. What would be a way of achieving this mechanic?

Share this post


Link to post
Share on other sites
Advertisement

I'm building a top down shooter and i want to make the screen flash a color of tint when you are hit. What would be a way of achieving this mechanic?


Probably the easiest way to do this would be to draw a partially transparent full screen sprite (with SpriteBatch). You can animate the alpha value over time in code to make it gradually fade it and then back out.


Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement