Hello!
I was wondering what parameters the EmitterObject can be passed when calling display:newEmitter(), and what the different values for them are. I’ve been using this online particle editor to create particles, but I find it to be more of a hassle then anything. And I don’t really want to drop 80 bucks on the officially support particle editor (https://71squared.com/particledesigner). I can easily get away with creating particles by doing this:
local emitter = display.newEmitter({ absolutePosition = "", gravityx = 0, gravityy = 1000, startColorRed = 1, startColorGreen = 0, startColorBlue = 0, startColorAlpha = 1, startColorVarianceRed = 0, startColorVarianceGreen = 0, startColorVarianceBlue = 0, startColorVarianceAlpha = 0, finishColorRed = 1, finishColorGreen = 0, finishColorBlue = 0, finishColorAlpha = 1, finishColorVarianceRed = 0, finishColorVarianceGreen = 0, finishColorVarianceBlue = 0, finishColorVarianceAlpha = 0, startParticleSize = 4, startParticleSizeVariance = 0, finishParticleSize = 6, finishParticleSizeVariance = 0, maxRadius = 1000, maxRadiusVariance = 0, minRadius = 0, minRadiusVariance = 0, rotatePerSecond = 0, rotatePerSecondVariance = 0, rotationStart = 0, rotationStartVariance = 0, rotationEnd = 0, rotationEndVariance = 0, speed = 500, speedVariance = 500, emissionRateInParticlesPerSeconds = 99999999999, radialAcceleration = 0, radialAccelVariance = 0, tangentialAcceleration = 0, tangentialAccelVariance = 0, sourcePositionVariancex = 0, sourcePositionVariancey = 0, angle = 270, angleVariance = 100, particleLifespan = 2, particleLifespanVariance = 0, duration = 0.05, textureFileName = "particle.png", maxParticles = 5000, blendFuncSource = 0, blendFuncDestination = 0 })
Which totally works, and with Corona’s live reloading it’s extremely fast to test particles this way. The only issue I’m having is that I can’t find any documentation on some of these parameters. The ones that I’m really having trouble with are “blendFuncSource” and “blendFuncDestination” which are very important since they determine how the particle looks!