Alright, off the top of my head...
Let 100 be the light source object number (sun, whatever...)
I assume you have a screen resolution of 640,380
Image numbers 1,2,3,4 are the lens flare images
differx#=320-object screen x(100)
differy#=240-object screen y(100)
sprite 1,320+differx#*0.5,240+differy#*0.5,1
sprite 2,320+differx#*0.2,240+differy#*0.2,2
sprite 3,320-differx#*0.2,240-differy#*0.2,3
sprite 4,320-differx#*0.5,240-differy#*0.5,4
That might not work entirely, but the theory is correct... I was thinking of finding the midpoint of a line when it hit me how obvious it was
The Old Remedy 3D Skateboarding - http://www.ddrw.dbspot.com
* * * Coming December 1st - "Dumbo"...