Sign in to follow this  
nex7

Lightning effect

Recommended Posts

Ok I have explosions and smoke and flashy things and all that in my game...but how does one go about making a lighting effect. Anyone have an article I can read about 2d lightning fx in XNA? or any other api for that matter. screenshot of what im looking for clicky

Share this post


Link to post
Share on other sites
You could draw quads with a 'lightning' texture end on end travelling in a certain direction with some random changes in direction. It would look something like this (Ignore the horrible art [smile]).

You could just treat it as a particle system where the particles are quads and 'attached' to each other. As you update each frame you decide a direction and add another section then when it finished fade it 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