Fork me on GitHub
Not signed in (Sign In)
  1.  
    Hi

    I'm creating some particles from an array full of movie clips:
    emitter.addInitializer( new ImageClasses(lista) );

    At the very beginning of the movie the movieclips are displayed on the top-left corner of the stage before they are initialized at the center of the stage:
    emitter.addInitializer( new Position( new PointZone( new Point ( 1024, 384 ) ) ) );

    This is for one frame only.
    I don't want them there i want the stage to be clean before the particles are initialized.

    Here: Example

    ¿How can i fix this?
  2.  
    Somebody?¿
    • CommentAuthorRichard
    • CommentTimeAug 8th 2009
     
    Hi

    Sorry, been on holiday so late to the party.

    Your example returns a 404 error. Have you removed it?

    Anyway, it's not a problem I've come across before so I probably would need to see some code to figure out what's wrong. Can you provide a simple example?

    Richard
  3.  
    Hey, glad you are back.
    Here: Example

    var listaPajaros:Array=[pajaro1,pajaro2,pajaro3,pajaro4,pajaro5];
    var emitter:Emitter2D = new Emitter2D();
    var fuerza:Number=-100;

    emitter.counter=new Blast(500);
    emitter.addInitializer( new ImageClasses(listaPajaros) );
    emitter.addInitializer( new Position( new PointZone( new Point ( 1024, 384 ) ) ) );
    emitter.addInitializer( new Velocity( new DiscZone( new Point( 1024, 384 ), 768, 1 ) ) );

    emitter.addAction( new ApproachNeighbours( 26, 30 ) );
    emitter.addAction( new MatchVelocity( 26, 100 ) );
    emitter.addAction( new MinimumDistance( 10, 600 ) );
    emitter.addAction( new SpeedLimit( 80, true ) );
    emitter.addAction( new SpeedLimit( 100, false ) );
    emitter.addAction( new RotateToDirection() );
    emitter.addAction( new BoundingBox( -268, -268, 2316, 1036, 100 ) );

    emitter.addAction( new Move() );
    emitter.addAction( new AntiGravity ( fuerza, circulo1.x, circulo1.y, circulo1.width/2 ));

    var renderer:DisplayObjectRenderer = new DisplayObjectRenderer();
    renderer.addEmitter( emitter );
    addChild( renderer );
    emitter.start( );
    • CommentAuthorRichard
    • CommentTimeSep 1st 2009
     
    This was a problem with the DisplayObjectRenderer. It's now fixed and is part of version 2.1.2 which was released today.
  4.  
    Yes, I'm using version 2.1.2 now and the stage is totally clean before the particles are initialized.

    Thank you Richard.
    Congratulations on the new version, the new renderers are very nice.

    This thread is SOLVED.