How to stop Particle?

View previous topic View next topic Go down

How to stop Particle?

Post  LuisLee on Tue Oct 20, 2009 7:10 pm

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-26
Age : 30

View user profile

Back to top Go down

Re: How to stop Particle?

Post  Francescu on Tue Oct 20, 2009 8:57 pm

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 Tue Oct 20, 2009 9:06 pm

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
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: How to stop Particle?

Post  Francescu on Tue Oct 20, 2009 10:45 pm

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 12:41 am

thank you very much! Very Happy

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 30

View user profile

Back to top Go down

Re: How to stop Particle?

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum