Flint Particle System Forum - Event particle dead crash :(2011-12-13T13:55:15+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Event particle dead crash :(http://flintparticles.org/forum/comments.php?DiscussionID=322&Focus=1113#Comment_11132010-02-11T04:04:03+00:002011-12-13T13:55:15+00:00con.cept.mehttp://flintparticles.org/forum/account.php?u=324
I have something like this.. but whenever i call a function with Particle dead event then it gets into a loop and crash.. does anybody know why ? :s
var emitter:Emitter2D = new ...
var emitter:Emitter2D = new Emitter2D(); emitter.counter = new Blast( 8000 ); emitter.addInitializer( new ColorInit( 0xFFFF00FF, 0xFF00FFFF ) ); emitter.addInitializer( new Position( new DiscZone( new Point( 200, 200 ), 200 ) ) ); emitter.addAction( new Move() ); emitter.addInitializer( new Lifetime( 8 ) ); emitter.addAction( new Age( Quadratic.easeInOut ) ); var heart:Bitmap = new Heart(); emitter.addAction( new TweenToZone( new BitmapDataZone( heart.bitmapData, 10, 10 ) ) );
var renderer:PixelRenderer = new PixelRenderer( new Rectangle( 0, 0, 800, 600 ) ); 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 ] ) ); renderer.addEmitter( emitter ); addChild( renderer );
emitter.start();]]>
Event particle dead crash :(http://flintparticles.org/forum/comments.php?DiscussionID=322&Focus=1116#Comment_11162010-02-13T13:23:38+00:002011-12-13T13:55:15+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
It may be because all 8000 particles die at the same time, so you're calling moveToTween1 8000 times. It depends what moveToTween1 does.