Flint Particle System Forum - How do I make particles fade in quickly without affecting other params?2011-12-13T12:58:57+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
How do I make particles fade in quickly without affecting other params?http://flintparticles.org/forum/comments.php?DiscussionID=301&Focus=1046#Comment_10462010-01-15T01:43:22+00:002011-12-13T12:58:57+00:00michaelkhttp://flintparticles.org/forum/account.php?u=303
Thanks for the amazing package!
I am trying to create a steam effect. I would like the particles to fade in quickly but then follow a aging process similar to smoke. I tried using the TwoWay ...
I am trying to create a steam effect. I would like the particles to fade in quickly but then follow a aging process similar to smoke. I tried using the TwoWay modifier but it affected all the actions. Is there another way to accomplish this? Thanks in advance for any ideas!
var wrap_steam:Emitter2D = new Emitter2D(); wrap_steam.counter = new Steady( 10 );
wrap_steam.addInitializer( new Lifetime( 3, 7 ) ); wrap_steam.addInitializer( new Position( new LineZone( new Point( -40, 0 ), new Point( 40, 0 ) ) ) ); wrap_steam.addInitializer( new Velocity( new RectangleZone(-10, -30, 10, 0 )) ); wrap_steam.addInitializer( new SharedImage( new RadialDot( 3 ) ) );
wrap_steam.addAction( new Age( ) ); wrap_steam.addAction( new Move( ) ); wrap_steam.addAction( new LinearDrag( 0.01 ) ); wrap_steam.addAction( new ScaleImage( 2, 20 ) ); wrap_steam.addAction( new Fade( .1, 0 ) ); wrap_steam.addAction( new RandomDrift( 20, 20 ) );
var renderer3:BitmapRenderer = new BitmapRenderer( new Rectangle( 0, 0, 200, 200 ) ); renderer3.addEmitter( wrap_steam ); addChild( renderer3 );]]>
How do I make particles fade in quickly without affecting other params?http://flintparticles.org/forum/comments.php?DiscussionID=301&Focus=1049#Comment_10492010-01-16T20:11:34+00:002011-12-13T12:58:57+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
You probably need a custom Action. Flint is designed so that extending it with custom behaviours is pretty easy, take a look at the source code for any of the existing Actions. Also, Ryan's ...
Flinteroids tutorial includes creating custom Actions.]]>