I have it changing a variable up or down depending on which way you scroll and I have it zooming in an out, but I can't figure out how to stop love.graphics.scale from scaling everything else after the planet and it's inhabitants, so the mouse (which obviously has to go over everything) is scaled with the rest of it.
I tried doing
Code: Select all
love.graphics.scale(1)
I'm welcome to any alternatives to love.graphics.scale and some help with layering different things in the same way you can layer movieclips in flash.
I had a look into framebuffers but got a bit confused due to the lack of examples on the wiki.
Here's the perpetrator:
Code: Select all
if area == "ingame" then
love.graphics.scale(scale)
love.graphics.setColor(51, 204, 102, 255)
love.graphics.setBlendMode("alpha")
love.graphics.setColorMode("modulate")
love.graphics.circle("fill", 640, 400, 500, 500)
end
love.graphics.scale(1)
love.graphics.draw(p, 0, 0)
J