Questions about particles
Posted: Thu Mar 28, 2013 6:25 pm
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.)
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.)