I'm trying to use
Code: Select all
love.graphics.scale()
Each time I click, it clicks on the offset position of
Code: Select all
scale()
Any ideas of what I should do?
I tried
Code: Select all
TLfres
Thanks and have a nice day!
Code: Select all
love.graphics.scale()
Code: Select all
scale()
Code: Select all
TLfres
Ok thanks, I'll try this out!micha wrote:You can simply divide the mouse coordinates by the scale factor.
Example: Scaling by factor 3 means that the mouse x-coordinate 150 is the x-coordinate 150/3=50 in your game coordinates.
However this will only work if you do not also use translate. In that case, you'd have to keep track of all transformations.
Users browsing this forum: No registered users and 6 guests