How to stop Particle?

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View previous topic View next topic Go down

How to stop Particle?

Post  LuisLee on Wed Oct 21, 2009 1:10 am

How to stop Particle? I used particle system do Explosion effects !But you can not stop it.
When I use sio2EmitterStop () function, but Suspended particles.

In my demo,When Throw grenade,Hit and exploded , like sio2interactive's 3d shooter,How to stop Particle?

thank you!

LuisLee

Posts: 85
Join date: 2009-04-27
Age: 22

View user profile

Back to top Go down

Re: How to stop Particle?

Post  Francescu on Wed Oct 21, 2009 2:57 am

You have to set particles lifetime to zero (0), based on some elapsed time (e.g. how long you want your emitter & particles to last basically).

http://sio2interactive.forumotion.net/sio2-engine-f3/stopping-emitter-after-1-cycle-t657.htm?highlight=stop+emitter

Francescu

Posts: 136
Join date: 2009-03-18

View user profile

Back to top Go down

Re: How to stop Particle?

Post  sio2interactive on Wed Oct 21, 2009 3:06 am

Actually me the way I do it is when the emitter reach a certain amount of particle I stop creating them... then when all particles are done rendering I flush the emitter... that's the way I do it in BW.

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com

sio2interactive

Posts: 1524
Join date: 2008-08-26
Age: 30
Location: Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: How to stop Particle?

Post  Francescu on Wed Oct 21, 2009 4:45 am

sio2interactive wrote:Actually me the way I do it is when the emitter reach a certain amount of particle I stop creating them... then when all particles are done rendering I flush the emitter... that's the way I do it in BW.

That's right - I recall you mentioning it before as another way.

Cheers

Francescu

Posts: 136
Join date: 2009-03-18

View user profile

Back to top Go down

Re: How to stop Particle?

Post  LuisLee on Wed Oct 21, 2009 6:41 am

thank you very much! Very Happy

LuisLee

Posts: 85
Join date: 2009-04-27
Age: 22

View user profile

Back to top Go down

View previous topic View next topic Back to top


This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Permissions of this forum:
You cannot reply to topics in this forum