liaocheng / away3d-particles-system

A particle system based on Stage3D for Away3D engine
68 stars 16 forks source link

Start and Stop Animation in only one ParticleContainer #4

Open fxdevGer opened 12 years ago

fxdevGer commented 12 years ago

Hi,

How can I start and stop a Particle Effect in only one Container. Think about a First Person Shooter were Bullets hit a Target. I dont want to create new Particle Containers each Time the Bullet hits.

What Param defines that the Animation has finished? Sorry for my poor English.

Thx

liaocheng commented 12 years ago

Hey! You can set a container's time to 0,and then it will play again auto.You can also clone the container to get a new instance,it's efficient.There is no param which define if it's finished,you can use the container's time to judge that.

fxdevGer commented 12 years ago

Hey,

Thanks for your reply. I will test that tomorrow. Hope I can handle this case with clone or the time.

Anyway, great Engine :) Thanks for sharing.

Is that efficient to create a new ParticleContainer each time I needed?

liaocheng commented 12 years ago

If you can reuse a container,reusing it is the best efficient .If you need many instances of a same container,cloning it is the best efficient.