Lightening?

BlitzPlus Forums/BlitzPlus Programming/Lightening?

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I need some lightening effects in my game. I don't want to spend hours making a lightening animation for every time I need to use some special FX, so I tried making a lightening algorythm.
I have no idea how to do this, though. It needs to be something like:

Function DrawLightening(x1#,y1#,x2#,y2#,r%,g%,b%)

;...drawing lightening code goes here

End Function


Can anyone help me with this? Or at least just give me some pointers as to how to go about doing this...?