Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorvangojames
- CommentTimeDec 20th 2011
Hi I'm trying to get a new BitmapData object, split it up, position it randomly, have it reform, wait for a bit, then have it move off to another random point. So far I am using the Particle2DUtils.createRectangleParticlesFromBitmapData to generate the particles. Then I am adding them to an emitter with TweenToCurrentPosition(new PointZone()). This emitter has a Lifetime initialiser and Age action so that it will animate, but the issue is that on completion the particles disappear. Does anyone know how I can stop the particles disappearing at the end?
Thanks,
James -
- CommentAuthorRichard
- CommentTimeJan 8th 2012
Add an event handler to listen for the particleDead event from the emitter. When a particle dies, revive it and add it to another emitter which won't delete it. This is the emitter that will hold the particles while you wait to trigger the next action. See the Logo tween example for the code to do this.
1 to 2 of 2
