Re: How to print text that isn't affected by the camera.scale ?
Posted: Sun Jul 21, 2019 2:57 pm
Use love.graphics.push() and love.graphics.pop()
If I understand correctly, you don't want to actually re-centre the screen (which is what your first sentence suggested) but to do a zoom in/out over an arbitrary point that is not the screen centre.Harrylechienfou wrote: ↑Tue Jul 09, 2019 5:19 pm I have another question since were're here : what if I want to use the current mouse position to be the center of the screen when I zoom in/out ? Like for example I put the mouse somewhere on the screen when there is a red dot drawn, and because the mouse is wher the red dot is, it will zoom in/out where the mouse is (at the red dot position), but if after that I move my mouse to a blue dot drawn somewhere on the screen, then it will zoom in/out with the camera centered on this blue dot instead.