Page 2 of 2

Re: use mouse to move things around

Posted: Sun Feb 07, 2010 7:29 pm
by Robin
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:

Code: Select all

function love.draw()
    love.graphics.circle("fill", planet1.body:getX(), planet1.body:getY(), planet1_RADIUS)
end
But it might not be what you want. Unfortunately, I'm not sure what that is. ;)

Re: use mouse to move things around

Posted: Wed Feb 10, 2010 6:37 pm
by Xoria
How do you attach images?

Re: use mouse to move things around

Posted: Wed Feb 10, 2010 6:48 pm
by Robin
Under the text box, "Upload attachment".

Re: use mouse to move things around

Posted: Wed Feb 10, 2010 7:39 pm
by TechnoCat
I think he wants to attach an image to his object.
something like love.graphics.draw(Image, getX(), getY()) --This code will not work unmodified.

Re: use mouse to move things around

Posted: Thu Feb 11, 2010 1:13 am
by Xoria
Thanks. Probably this is the most help forum lol.