Flint Particle Systems With Flash
I have been experimenting with the Flint particle system action script library in Flash.
Below is my first experiment using this library, it shoots the particles with an initial velocity and are then affected by the gravitational acceleration towards the centre, creating a very nice effect.
First experiment using the Flint particle system library
This was very simple to make with Flint and this library is well worth checking out. Although I would recommend stopping this video when not viewing as it is very processor intensive.
Here is the action script code from the above file, you will need the flint library as well as the associated code imports.
var emitter:Emitter2D = new Emitter2D();
var renderer:BitmapRenderer = new BitmapRenderer( new Rectangle( 0, 0, 800, 400 ) );
emitter.counter = new Steady( 4 );
emitter.addInitializer( new SharedImage( new Dot( 1 ) ) );
emitter.addInitializer( new ColorInit( 0x0033CC00, 0x0000FFFF ) );
emitter.addInitializer( new Position( new LineZone( new Point(270, 0 ), new Point(270, 30 ) ) ) );
emitter.addInitializer( new Velocity( new PointZone( new Point(50, 0 ) ) ) );
emitter.addInitializer( new Lifetime( 100 ) );
emitter.addAction( new Age( Quadratic.easeOut ) );
emitter.addAction( new GravityWell( 200, 270, 200, 200) );
emitter.addAction( new Move() );
emitter.addAction( new Fade() );
emitter.addAction( new Age() );
renderer.addFilter( new BlurFilter( 2, 2, 1 ) );
renderer.addEmitter( emitter );
addChild( renderer );
emitter.start( );
1 Comments
Hey buddy,
Nice site you got goin here, look forward to seeing how it turns out. Someone hire this guy already!
7:44 AM
02 May 2009
Jake
Write a Comment
Name and Email are required. Basic html is supported in comments.
Name
Email
Website
Comment