The sceneCoords field was a really nice addition, but there's some issues related to modifying the camera position. In a certain part of my level I'm forcing the camera to the right by setting the camera.x value. It worked fine before, but the new version of particles.lua uses sceneCoords and is drawing the particles farther to the right than it should (about where they would be on the screen if the camera was left where the game expects).
I'm drawing the particles after setting the camera value. The relevant code:
Code: Select all
function onCameraUpdate()
local cam = Camera.get()[1]
...
cam.x = platformcamx
...
bombsmoke:Draw()
Is this an oversight, or am I doing something wrong?
Edit: Nobody? I'll just use an older version of particles.lua with my level, but this issue seems like something that should be looked at.
Edit 2: ...and the old particles.lua is significantly slower, so that won't do.