Flint Particle System Forum - Particles automatically removed depending on scale ? Sun, 16 Oct 2011 21:02:27 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Particles automatically removed depending on scale ? http://flintparticles.org/forum/comments.php?DiscussionID=505&Focus=1692#Comment_1692 http://flintparticles.org/forum/comments.php?DiscussionID=505&Focus=1692#Comment_1692 Tue, 09 Aug 2011 13:36:35 +0100 oknoeno 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 http://flintparticles.org/forum/comments.php?DiscussionID=505&Focus=1701#Comment_1701 Fri, 19 Aug 2011 11:17:21 +0100 Richard