Search found 1 match

by masterjohn12
Sat Nov 11, 2017 2:02 pm
Forum: Support and Development
Topic: Change image/drawing position to the mouse position every frame
Replies: 3
Views: 3408

Change image/drawing position to the mouse position every frame

I have the following code and I dont know what how to do this function love.load() image = love.graphics.newImage("ricardo.jpg") w, h = love.graphics.getDimensions() wi, hi = image:getDimensions() end function love.update(dt) -- Change image position accordingly to the mouse position end -...