liaocheng / away3d-particles-system

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

Pause the particle generation #5

Open David-Luis opened 12 years ago

David-Luis commented 12 years ago

Hi liaocheng,

I want to know if it would be possible to pause the generation of particles, but not stop the update of the particles that are already generated. For example, when I stop the particles in the smoke example, it freezes, and if I use removeChild, the effect is strange.

Thanks!

liaocheng commented 12 years ago

Hi, It's the same with the TransformFollowAction which implenet the freezes effect. Freezes effect change the position of particle on the fly,but the effect what you want need to change the visible attribute of the particle on the fly.Now there is no this action,you can do it yourself.

liaocheng commented 12 years ago

Hi, If you don't want to implement a new action,you can just set the followTarget to a object that out of the view (very far that not in your view). Cheers!

David-Luis commented 12 years ago

That is a very good idea, thank you!!

nidin commented 11 years ago

Hi, is there any new method to do this since this method will reduce overall performance since particles are using resources even if they are not visible in the view.