I have been experimenting again with Flint Particle System, that you can find at flintparticles.org.
I made some smoke, modified from the FireAndSmoke version, already at the site
Enjoy!
I have been experimenting again with Flint Particle System, that you can find at flintparticles.org.
I made some smoke, modified from the FireAndSmoke version, already at the site
Enjoy!
Hi!
Today’s lesson will be about creating a starfield with the Flint Particle System. It’s quiet easy, thanks to the simplicity of the system itself. Let’s jump in! Follow me!
package {
public class StarField extends MovieClip {
public function StarField() {
}
}
}
// all we need to import from flash libraries
import flash.display.MovieClip;
import flash.geom.Point;
import flash.events.Event;
import flash.filters.BlurFilter;// all we need to import from Flint library
import org.flintparticles.displayObjects.Dot;
import org.flintparticles.actions.*;
import org.flintparticles.counters.*;
import org.flintparticles.emitters.*;
import org.flintparticles.initializers.*;
import org.flintparticles.zones.*;
public function StarField() {
this.addEventListener(Event.ADDED_TO_STAGE, added);
}
private function added(e:Event) {
// your code here…
}
var emitter:BitmapEmitter = new BitmapEmitter();
emitter.setCounter( new Steady(20) );
emitter.addFilter( new BlurFilter( 2, 2, 1 ) );
emitter.addInitializer( new SharedImage( new Dot( 1 ) ) );
emitter.addInitializer( new ColorInit( 0xFFFFFFFF, 0xFF000FFF ) );
emitter.addInitializer( new Position( new LineZone(new Point(250, 0), new Point(250, 250))) );
emitter.addInitializer( new Velocity( new PointZone( new Point (-100, 0) ) ) );
emitter.addAction( new Move() );
emitter.addAction( new SpeedLimit(200) );
emitter.addAction( new DeathZone( new RectangleZone(0, 0, stage.stageWidth, stage.stageHeight), true) );
addChild( emitter );
emitter.start( );
emitter.runAhead(2);
[download=4]
See you soon with other Flint related stuff!
Hey all
this are the tutorials i wrote up to now. Please click on the link to read them. Some are just in italian. Some others are in english. I hope you can find them useful. And please, let comments to share every doubt or request!
See you!
Hey all!
I’ve been studying Flint as3 particle system.
I still have learned 80% of its full potential, and i already love it. With a little customization, you can make your own effect classes and then you can use them whenever you want. The methods that has been created are very friendly and self-explicative.
These are two examples made in about half a day, the first things that i always dreamt of.
Follow instructions ;)
I think i’ll write a tutorial for this library soon.
Good night!