Drawing over the mouse?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Drawing over the mouse?

Post 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
"In those quiet moments, you come into my mind" - Liam Reilly
User avatar
MadByte
Party member
Posts: 533
Joined: Fri May 03, 2013 6:42 pm
Location: Braunschweig, Germany

Re: Drawing over the mouse?

Post 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() .
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Re: Drawing over the mouse?

Post 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
"In those quiet moments, you come into my mind" - Liam Reilly
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 5 guests