I wonder what is the best way to end the camera player follow when a map layer outer borders reach the visible screen borders?
For example: In the game a player is always shown in the center of the screen because the camera is set to follow the player sprite. Now when a maps left, right (or top or down) end is reached and the map should not scrolled anymore in the visible screen area, the camera player follow should end, so the map stands still and the player is moving to the screen border.
So what is the best way to achieve this in dusk? I mean how to best detect a map layers outer border and compare them to the visible screen?