[QUOTE=bowiz2] I managed to get it to work somewhat, but instead of being lightest at the center, its darkest. How do I invert it? I think you explained it in your last post, but I still don't really get it. Can you try and explain it as if your explaining to an imbecile?
Here is the code for the opacity:
Lightcell--->Set Opacity To min(distance(Sun.X,Sun.Y,Sun.Sight.CurPixelX,Sun.Sight.CurPixelY)/ (10 * 32), 1)*100[/QUOTE]
Lightcell--->Set Opacity To 1 - (min(distance(Sun.X,Sun.Y,Sun.Sight.CurPixelX,Sun.Sight.CurPixelY)/ (Sun.Sight.Radius * Sun.Sight.Tilesize), 1)) * 100
The 1 - inverts the opacity. The Sun.Sight.Radius and Sun.Sight.Tilesize are expressions and if you put them in you don't have to worry about changing them as it will automatically update.