1) It looks like particleEmitters that don't get explicitly removed just sit around in the background counting-- is that correct? Is that for the life of the map, of the session, or of the character?
2) Some kinds of code don't work inside of particle functions. For instance, putting a print() or game.logSeen() in the function just seemed to disable the particle, and I never got any print or log messages. Is there any way to get output from these functions so that I can debug them? Is there some method to what sorts of functions will work and what won't? (For instance, it might be nice to make self-limited particles like particles/flame.lua auto-destruct upon reaching their self.nb threshold, but I'm not sure if that can be done.)
Questions about particles
Moderator: Moderator
Re: Questions about particles
1) Depends where you use them; applying a partile effect to the map by Map:addParticles, or with project() wil lauto remove them
2) Yes particle code runs in a multithreaded environment without access to the game code, that's normal. IIRC print should work though
2) Yes particle code runs in a multithreaded environment without access to the game code, that's normal. IIRC print should work though
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Questions about particles
Thanks.
Is there any way to set the angle that a particle image is displayed at? Or rotate it during its lifetime? Not talking about moving in an arc, but rotating the picture, like drawing it upside-down or something. I tried angle = { 0, 360 }, anglev = { 2000, 4000 }, anglea = { 20, 60 } which is used elsewhere but it didn't seem to do anything.
Is there any way to set the angle that a particle image is displayed at? Or rotate it during its lifetime? Not talking about moving in an arc, but rotating the picture, like drawing it upside-down or something. I tried angle = { 0, 360 }, anglev = { 2000, 4000 }, anglea = { 20, 60 } which is used elsewhere but it didn't seem to do anything.
Re: Questions about particles
You can rotate the whole particle system but not individual ones, although some day I'll add that
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
