Realistic 2D dynamic lights [AS3]
How to apply
This realistic 2d light effect is very easy to use. To add a light just add this line of code to your FLA or ActionScript file:
createLight(rigid:Boolean, tx:Number, ty:Number, radius:Number, degrees:Number,
accuracy:Number, transparency:Number, colour:uint, ratio:Array, blurX:Number, blurY:Number)
For instance:
createLight(false, 0,0, 300, 360, 3, 1, 0xFFFF83, [100,255], 20, 20);
+ Static lights and moving lights
How it works
This item uses a easy method to determine the outer edges of the objects by looping through them. All objects are placed in a bitmapData and therefore almost don’t use any memory.
Included files
- Documentation - Preview (80×80) image - The files (FLA, SWF , AS)
Customizable settings
- rigid light (true or false) - x position - y position - radius - degrees - alpha - color (like 0xFFFFFF) - ratio ( in an array: [100,255] ) - blurX - blurY
