Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start and Stop Animation in only one ParticleContainer #4

Open
fxdevGer opened this issue Dec 6, 2011 · 3 comments
Open

Start and Stop Animation in only one ParticleContainer #4

fxdevGer opened this issue Dec 6, 2011 · 3 comments

Comments

@fxdevGer
Copy link

fxdevGer commented Dec 6, 2011

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
Copy link
Owner

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
Copy link
Author

fxdevGer commented Dec 6, 2011

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants