Flint Particle System Forum - Particles automatically removed depending on scale ?2011-10-16T21:21:11+01:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Particles automatically removed depending on scale ?http://flintparticles.org/forum/comments.php?DiscussionID=505&Focus=1692#Comment_16922011-08-09T13:36:35+01:002011-10-16T21:21:11+01:00oknoenohttp://flintparticles.org/forum/account.php?u=531
I had the problem that particles in a DisplayObjectRenderer were automatically removed at the global x position of 1024. I ran different tests and found out that the auto-removement depends on the ...
if I add an Scale Initializer with a value < 1 the particle is removed before 1024, if the value is > 1 its removed later. Really strange is that its calculated via tha global position. When I move the renderer to the right it still removes the particle at the same position.
Can I somehow change this behavior? Is there a rule?
emitter.addInitializer( new ImageClass( RadialDot, 2 ) ); emitter.addInitializer( new Velocity( new PointZone( new Point(165, 0 ) ) ) ); emitter.addInitializer( new ScaleImageInit( 0.5 ) ); // forces the particle to be removed at 512 px
emitter.addAction( new Move() );
var renderer:DisplayObjectRenderer = new DisplayObjectRenderer(); renderer.addEmitter( emitter );
renderer.y = 200 addChild( renderer );
emitter.start();]]>
Particles automatically removed depending on scale ?http://flintparticles.org/forum/comments.php?DiscussionID=505&Focus=1701#Comment_17012011-08-19T11:17:21+01:002011-10-16T21:21:11+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
I was able to reproduce the error, using your code as supplied. However, when I change the display object to something else, like the Dot or Star, the problem goes away. It seems to be an issue ...