Hi,
I’m NOT using Corona’s auto-sizing for my app. in other words, I’m literally using the pixel resolution of the device directly to determine where to place my objects and how to determine the size of objects myself.
The problem I’ve encountered is that I don’t know how to properly scale a particle effect, since particleEmitter:scale(__,___) does not work as it does for other display objects.
Just for added information, here is my code to create a particle display object.
local emitterParams = json.decode( particleDataFromFile ) local emitter = display.newEmitter( emitterParams )
The following DOES NOT WORK. But it should.
xScale=deviceHorizontalResolution/2048 -- 2048 = particle is right size at 2048W yScale=deviceVerticalResolution/1536 -- 1536 = particle is right size at 1536H emitter:scale(xScale,yScale) -- does not work
Any help is very much appreciated.