Flint Particle System Forum - Particles automatically removed depending on scale ? 2011-10-16T21:21:11+01:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Particles automatically removed depending on scale ? http://flintparticles.org/forum/comments.php?DiscussionID=505&Focus=1692#Comment_1692 2011-08-09T13:36:35+01:00 2011-10-16T21:21:11+01:00 oknoeno http://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?

Thanks!

Here my test code:

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.*;
import flash.display.StageScaleMode;
import flash.display.StageAlign;

var emitter:Emitter2D = new Emitter2D();

emitter.counter = new Steady( 50 );
stage.align = StageAlign.TOP_LEFT
stage.scaleMode = StageScaleMode.NO_SCALE

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_1701 2011-08-19T11:17:21+01:00 2011-10-16T21:21:11+01:00 Richard http://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 ...