Sign in to follow this  
turlisk

xna drawing question

Recommended Posts

turlisk    103
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
doesnotcompute    262
[quote name='turlisk' timestamp='1307234465' post='4819599']
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?
[/quote]

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this