I put this at the start of my love.draw() just to test:WetDesertRock wrote:If you set the light worlds translation by the same value you set loves translation, and it messes up, then its a bug I think. But you should set both values to the same.
Code: Select all
love.graphics.translate(100, 100)
lightWorld.setTranslation(getLightTranslation(100, 100, 1))
Code: Select all
function getLightTranslation(x, y, scale)
local tx,ty = width/(2*scale), height/(2*scale)
tx = tx-x
ty = ty-y
return -tx,-ty
end
What am I doing wrong? Again, there's a picture of what it should look like in my earlier post above.