thunder and lightning : effect tips

BlitzMax Forums/BlitzMax Beginners Area/thunder and lightning : effect tips

I hoping to implement lightning in my project. Not a lightning strike but a white flash that fills the black screen momentarily. Not sure where to start, any tips?

Thanks in advance

I would use lightblend and a white image, thats color I set from black to white and back with large steps to get it "flashy" enough.

Thanks for the info, anyone got some lightblend examples ?

samples/birdie/misc/lightimage

Ah yes, right under my nose.Thanks a lot.

Might be close to what you want...
Graphics 640,480
image:TImage=LoadImage("max.png")
While Not KeyHit(KEY_ESCAPE)
  Cls
  DrawImage image,0,0
  If MouseDown(1)
	  SetBlend lightblend
 	  SetAlpha 0.6
	  DrawRect 0,0,640,480
  	  SetBlend maskblend
      SetAlpha 1.0
  EndIf
Flip
Wend


Why SetAlpha without Alphablend?
Is Alpha used on LightBlend?

Thanks nice Tony, Thanks.


Is Alpha used on LightBlend?


yes