PDA

View Full Version : endless particles, pausesprite


Nicknack
10-16-2009, 04:35 PM
1. I asked it shortly once (http://forum.arianesoft.ca/showthread.php?t=1690&highlight=particles), now I need it again: endless living particles.
followig situation: I want to create every time nearly the same particle effect on a speficic event and I don't want to save all the parameters in variables. it would be faster (eg no loadsprite every time) and easier, to do Newparticle once, remember only that created handle and clone the particle on every new use.
this template-particle shouldn't be triggered, so something like pausesprite would be nice for particles.

2. apropos pausesprite, could implement a new function which combine pausesprite and showsprite(sprite,false) in one? if you use the pattern described above for sprites, you also have a template-sprite which is only there for cloning. would it too much to ask for a same new "combine" function for particles? :p

kornalius
10-17-2009, 07:18 PM
Endless particles is something I will be looking into before 2.2 is released.

The other question I am not too sure what you are asking. The so_pause and so_visible options are there and could do what you are asking with the clonesprite.

Nicknack
10-17-2009, 08:31 PM
yeah the second part was a bit quirky formulated (and thought out), anyway the essence would be:
is SO_PAUSED and SO_VISIBLE also avaible to particles?

kornalius
10-19-2009, 03:40 AM
Ah to particles. I misunderstood and thought it was got sprites. I will look into that possibility as well.


yeah the second part was a bit quirky formulated (and thought out), anyway the essence would be:
is SO_PAUSED and SO_VISIBLE also avaible to particles?

kornalius
10-19-2009, 03:01 PM
Ok, here is what's new...

1. If you set the particleloop to -1 it will loop endlessly. In other words it will not die.

2. PO_PAUSED and PO_VISIBLE are new particles options.

This will be part of 2.2 and 1.60