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

    • CommentAuthorMakoto
    • CommentTimeApr 23rd 2010
     
    I have a scene setup where there are 9 MovieClips each containing a GreyScaleZone that the particles will travel to when the MoviClip is clicked and am wondering if there is a way to use a single emitter with these 9 zones.
    Currently the click handler for each of the 9 MovieClips removes the TweenToZone action and adds the new TweenToZone action to the emitter for the corresponding MovieClip that was clicked, and then calls the emitter to start. This works as expected if the previous particle simulation has completed, but if the previous simulation is still running, the existing particles jump to the coordinate space of the newly clicked MovieClip as the newly clicked MovieClip starts its own particle simulation.
    I plan to have 3 different emitters for various effects for each MovieClip and would like to use a single emitter for each type so that I don't have 9 blocks of emitter declarations all being the same (other than the name of the emitter variable).
    • CommentAuthorRichard
    • CommentTimeMay 17th 2010
     
    You might try calling particle.revive() on all the particles when altering the TweenToZone, and don't call start on the emitter - just let it keep running. Not sure if this will work, but it might.