Flint Particle System Forum - DeathZone Location Bug2010-12-26T14:22:58+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
DeathZone Location Bughttp://flintparticles.org/forum/comments.php?DiscussionID=16&Focus=81#Comment_812008-04-11T21:00:10+01:002008-05-20T10:12:51+01:00ericrhttp://flintparticles.org/forum/account.php?u=17
If you have moved the Emitter around withing the Renderer object then you must specify this offset in the DeathZone constructor. If you move the Emitter after setting the DeathZone does not also ...
Moving the Emitter's renderer works as expected.
Tested against the DiscZone object. "new Point( 0, 0 );" as the point value resulted in the DeathZone appearing in the top-left corner of the Renderer object.
Test code: package { import flash.display.Sprite; import flash.geom.Point;
public class Test extends Sprite { public function Test() { var emitter : Emitter = new Emitter( ); var renderer : BitmapRenderer = new BitmapRenderer(); emitter.renderer = renderer; addChild( renderer ); renderer.x = 50; // To see the offset problem. emitter.x = 125; emitter.y = 125;
emitter.counter = new Steady( 25 ); emitter.addInitializer( new SharedImage( new Dot( 3 ) ) ); emitter.addInitializer( new Position( new PointZone( new Point( 0, 0 ) ) ) ); emitter.addInitializer( new Velocity( new DiscZone( new Point( 0, 0 ), 100, 0 ) ) );
// Set the DiscZone to use "new Point( 0, 0 )" to see the issue. emitter.addAction( new DeathZone( new DiscZone( new Point( emitter.x, emitter.y ), 110, 95 ) ) ); emitter.addAction( new Move( ) );
emitter.start( ); } } } Thoughts? Is that how DeathZones are intended to work? The Initializers respect the emitter.x and emitter.y settings but the DeathZone appears not to... :/]]>
DeathZone Location Bughttp://flintparticles.org/forum/comments.php?DiscussionID=16&Focus=83#Comment_832008-04-11T23:03:27+01:002008-04-12T00:32:04+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
This is how the DeathZones are intended to work. The zones are in the same coordinate space as the particles.