Wintermute Engine Forum

Wintermute Engine => Feature requests, suggestions => Done => Topic started by: Stucki on May 26, 2006, 04:41:27 PM

Title: adding a once attribute to the particle script
Post by: Stucki on May 26, 2006, 04:41:27 PM
is it possible to add an attribute to the particle script that the particles are only emitted once at the start and then are killed normaly by there lifetimes

for example when the player moves a carpet there is a big dustcloud but this happens only once and could not be repeated.[ because the carpet cant be moved later on in my game ... ;)]
or when a cannon is fired ...

i tried to get it with the current features but like i understand it i can just call the DeleteParticleEmitter funktion after a given time and then all particles are killed at the same time.
maybe something like "StopEmitting" / "RestartEmitting" would be anouther worthy addition to the really impressive particle engine....

Greets
stucki

Title: Re: adding a once attribute to the particle script
Post by: Mnemonic on May 26, 2006, 08:48:52 PM
Yup, that will be useful. I see it more like MaxEmittingBatches or something like this. TODOed.
Title: Re: adding a once attribute to the particle script
Post by: Stucki on May 26, 2006, 09:48:57 PM
super. !! O0 ::rock O0
Title: Re: adding a once attribute to the particle script
Post by: Stucki on May 29, 2006, 03:45:36 PM
another one ..... ;)

i am not sure about this but it is not possible for particle Angle and Rotation to have minus values ???
so i am only able to rotate particles the clockwise direction ??

and for emitting particles from 270 to 90 degrees could not be achieved .
now, it would be the same as 90 to 270 degrees or did i get this wrong ??

therefore it might be useful to have it -90 to 90 degrees

greets stucki


Title: Re: adding a once attribute to the particle script
Post by: Mnemonic on May 29, 2006, 05:46:22 PM
i am not sure about this but it is not possible for particle Angle and Rotation to have minus values ???
so i am only able to rotate particles the clockwise direction ??
You can use negative angular speed to make the particles rotate counter clockwise.

and for emitting particles from 270 to 90 degrees could not be achieved .
now, it would be the same as 90 to 270 degrees or did i get this wrong ??
Right, that was an omission. I fixed that.
Title: Re: adding a once attribute to the particle script
Post by: Mnemonic on May 29, 2006, 07:20:32 PM
WME latest (http://dead-code.org/download/wme_latest.zip) adds a new MaxBatches attribute for particle emitter and it can handle angle ranges such as 270 to 90.
Title: Re: adding a once attribute to the particle script
Post by: Stucki on May 29, 2006, 09:36:46 PM
you are the greatest !!!!  O0 ::rock O0
thankx as always

stucki