I'm going to add another question to this, relating to my first question.
So, in my game, I have a minimap. The minimap is 200x200. When the mouse is over the minimap, I get it's position on the minimap treating the topleft of the minimap as 0,0.If the mouse is on the very center of the minimap, it is at 100x100.
I call this number mouse_minimap_x and mouse_minimap_y respectively for each axis.
Then what I do, is take that number, and do mouse_minimap_x/200. This gives me a ratio. So if the mouse were in the very center of the minimap, I would get 0.5.
I call this new number the mouse_minimap_ratio_x. I take this and do mouse_minimap_ratio_x*layoutwidth. This tells me where to move the camera on the layout. Which, in this case, would be to the very center of the layout.
This all works fine normally, the problem arises when I set the layout scale to anything other than 100%. The camera is moved to the wrong position, often very far offset from where it should be.
To solve this, I tried making a new layer, with a scale rate of 0, and put the camera on that, but that changes nothing.