Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

    • CommentAuthordcipollo
    • CommentTimeJul 1st 2011
     
    Hi,

    I'm using the Fireworks example but I don't want it to repeat. So I took out the restart.

    /*emitter.addEventListener( EmitterEvent.EMITTER_EMPTY, restart, false, 0, true );*/

    Then I call a fireworks explosion on two other frames

    emitter.x = 500;
    emitter.y = 20;
    emitter.start();

    Do I need anything more than this to stop the system.

    emitter.stop();
    renderer.removeEmitter( emitter );
    removeChild( renderer );

    emitter = null;
    renderer = null;

    Thanks alot.
    • CommentAuthorRichard
    • CommentTimeJul 15th 2011
     
    No, that should be all you need.