Re: use mouse to move things around
Posted: Sun Feb 07, 2010 7:29 pm
love.mouse.isDown() has semantically no place in love.draw() (although technically it doesn't matter).
Also: love.draw() is called to draw things. If the mouse button isn't down, nothing is drawn.
This would work:
But it might not be what you want. Unfortunately, I'm not sure what that is.
Also: love.draw() is called to draw things. If the mouse button isn't down, nothing is drawn.
This would work:
Code: Select all
function love.draw()
love.graphics.circle("fill", planet1.body:getX(), planet1.body:getY(), planet1_RADIUS)
end