1
General / Re: Trouble with window resizing
« on: September 10, 2021, 03:09:16 am »If your sf::View moves or isn't the same size as the window, then the pixel position of your mouse doesn't match anymore with the coordinates of entities inside your world.
You should use mapPixelToCoords to convert the position of your mouse to world coordinates.
(you may think you don't use any view, but there's always a default view)
I tried this but just kept getting errors that I needed an & symbol??? how exactly would I use this, thanks.