Page 1 of 1

Drawing over the mouse?

Posted: Mon May 27, 2013 2:35 pm
by Eamonn
Hello. I am making a game, but I want to add a custom mouse cursor. The mouse icon I want draws fine, it updates fine, but the mouse in on top of the icon. This was an issue. Is there a way to either draw over the mouse or remove the mouse altogether? This is kind of pointless and mainly for looks but I would like to have it anyway. Maybe this is the wrong way to do it....?

Thanks! Any help is appreciated :D

Re: Drawing over the mouse?

Posted: Mon May 27, 2013 2:38 pm
by MadByte

Code: Select all

love.mouse.setVisible( visible )
To draw a img ( i.e a new pointer) to the mouse position use love.mouse.getX() / love.mouse.getY() .

Re: Drawing over the mouse?

Posted: Mon May 27, 2013 2:44 pm
by Eamonn
MadByte wrote:

Code: Select all

love.mouse.setVisible( visible )
To draw a img ( i.e a new pointer) to the mouse position use love.mouse.getX() / love.mouse.getY() .
Thank you so much! :D