Flint Particle System Forum - Fade and remove all particles2011-06-23T16:34:44+01:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Fade and remove all particleshttp://flintparticles.org/forum/comments.php?DiscussionID=32&Focus=143#Comment_1432008-05-19T16:32:35+01:002008-05-20T10:03:30+01:00bbiggerhttp://flintparticles.org/forum/account.php?u=27
Is there a way to fade all particles and then remove them from a function call. I'd like to be able to remove all the particles quickly to transition to another section of a movie.
Thanks!
Thanks!]]>
Fade and remove all particleshttp://flintparticles.org/forum/comments.php?DiscussionID=32&Focus=144#Comment_1442008-05-19T16:55:55+01:002011-06-23T16:34:44+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
Easiest way would be to fade the renderer. The renderer is just a DisplayObject so use any method you like to reduce its alpha.
When you're done, call dispose() on the emitter to clean up the ...
When you're done, call dispose() on the emitter to clean up the particles neatly, and if you're using a BitmapRenderer or PixelRenderer, call dispose() on that too to free the memory used by the bitmapData object.]]>
Fade and remove all particleshttp://flintparticles.org/forum/comments.php?DiscussionID=32&Focus=149#Comment_1492008-05-21T13:36:36+01:002011-06-23T16:34:44+01:00robotzhttp://flintparticles.org/forum/account.php?u=21
Is there a way to do this if more than one emitter is sharing a renderer?
Fade and remove all particleshttp://flintparticles.org/forum/comments.php?DiscussionID=32&Focus=151#Comment_1512008-05-21T18:22:48+01:002011-06-23T16:34:44+01:00ericrhttp://flintparticles.org/forum/account.php?u=17
Algorithm to do what you want:
1) Fade out the renderer.
2) Loop through your Emitter objects and call "emitter.dispose()" on each.
3) Call "renderer.dispose()" on your ...
1) Fade out the renderer. 2) Loop through your Emitter objects and call "emitter.dispose()" on each. 3) Call "renderer.dispose()" on your FullStagePixelRenderer (assuming the code you posted in another thread).
That should clean everything up for you.]]>
Fade and remove all particleshttp://flintparticles.org/forum/comments.php?DiscussionID=32&Focus=533#Comment_5332008-11-20T23:46:04+00:002011-06-23T16:34:44+01:00luka66_6http://flintparticles.org/forum/account.php?u=108
I would like to ask for some clarification on this as i can not make this happen. Particles fade out nicely for the first time but when i hover over my display object again and again i only see ...
import flash.geom.Point; import org.flintparticles.common.counters.*; import org.flintparticles.common.displayObjects.RadialDot; import org.flintparticles.common.initializers.*; import org.flintparticles.twoD.actions.*; import org.flintparticles.twoD.emitters.Emitter2D; import org.flintparticles.twoD.initializers.*; import org.flintparticles.twoD.renderers.*; import org.flintparticles.twoD.zones.*;
var emitter:Emitter2D = new Emitter2D();
emitter.counter = new Blast( 2000 );
emitter.addInitializer( new ColorInit( 0xFFFF00FF, 0xFF00FFFF ) ); emitter.addInitializer( new Position( new DiscZone( new Point( 75, 17.5 ), 150 ) ) );
emitter.addAction( new Move() );
emitter.addAction( new GravityWell( 25, 75, 17.5 ) );
var renderer:PixelRenderer = new PixelRenderer( new Rectangle( 0, 0, 150, 35 ) ); renderer.addFilter( new BlurFilter( 2, 2, 1 ) ); renderer.addFilter( new ColorMatrixFilter( [ 1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0.99,0 ] ) );
if i add removeChild( renderer ); to my particleFade function i get an error: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/removeChild()
like i said any help would be great i love this system and i really like to be able to give my buttons nice roll on and out with particles fade effects.
regards Luka]]>
Fade and remove all particleshttp://flintparticles.org/forum/comments.php?DiscussionID=32&Focus=543#Comment_5432008-11-22T17:56:41+00:002011-06-23T16:34:44+01:00luka66_6http://flintparticles.org/forum/account.php?u=108
I would still require some help for fading and removing paticles from stage gradually. Please.
regards
Luka
regards Luka]]>
Fade and remove all particleshttp://flintparticles.org/forum/comments.php?DiscussionID=32&Focus=544#Comment_5442008-11-22T17:57:12+00:002011-06-23T16:34:44+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
Try this
function particleFade(event:Event):void{
renderer.alpha -= 0.1;
if (renderer.alpha
function particleFade(event:Event):void{ renderer.alpha -= 0.1; if (renderer.alpha<=0.2) { emitter.stop(); renderer.removeEmitter( emitter ); renderer.removeEventListener(Event.ENTER_FRAME, particleFade); removeChild( renderer ); } }]]>
Fade and remove all particleshttp://flintparticles.org/forum/comments.php?DiscussionID=32&Focus=545#Comment_5452008-11-22T18:07:08+00:002011-06-23T16:34:44+01:00luka66_6http://flintparticles.org/forum/account.php?u=108
Tnx. very much. :) It works like charm now. :)