Questions about particles

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
nate
Wyrmic
Posts: 261
Joined: Fri Jan 18, 2013 8:35 am

Questions about particles

#1 Post by nate »

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.)
Proud father of Fx4fx and Chronometer add-ons; proud mother of Fated add-on

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Questions about particles

#2 Post by darkgod »

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
[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 ;)

nate
Wyrmic
Posts: 261
Joined: Fri Jan 18, 2013 8:35 am

Re: Questions about particles

#3 Post by nate »

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.
Proud father of Fx4fx and Chronometer add-ons; proud mother of Fated add-on

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Questions about particles

#4 Post by darkgod »

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 ;)

Post Reply