I’m finding out that corona has no native particle support and that most people either seem to buy a copy of particle designer, or they get the particle editor by roaming gamer. I’ve read up on this and most of the guides just show you how to create a particle using the editor and then import it into your game. What if you want to change specific properties of the emitter programmatically? That’s where I’m confused. I dont see much to hook into if you want to change particle color, emission rate, etc.
I don’t think you can change the parameters of an active emitter. The issue is, the emitter loads a parameter table and starts operating based on those settings. The emitter itself does not have a lot of fields exposed.
I believe the reason for this is to keep the emitter light-weight and efficient.
So, what do you do if you need to programmatically modify an emitter over time?
A. Modify the emitter input (source table) parameters, delete the old emitter, create a new one. Not a great solution.
B. Use an alternate particle system. Caleb Place has two great solutions:
I don’t think you can change the parameters of an active emitter. The issue is, the emitter loads a parameter table and starts operating based on those settings. The emitter itself does not have a lot of fields exposed.
I believe the reason for this is to keep the emitter light-weight and efficient.
So, what do you do if you need to programmatically modify an emitter over time?
A. Modify the emitter input (source table) parameters, delete the old emitter, create a new one. Not a great solution.
B. Use an alternate particle system. Caleb Place has two great solutions: