This is what I'm looking to achieve:
- I want to use 16x16 sprites (square tiles) as bounding objects that my camera can't scroll past under any circumstances.
- In other words, the camera should never be able to scroll so far that it's able to show even a pixel beyond the edges of these bounding tiles.
- This also means that If I have a room that is smaller than the viewport, the camera should stay right in the center of the room.
I've been using Construct for about 10 years and I've spent the past four hours trying to figure this out using various approaches (sprite collision, offset algorithms, clamp etc.) and even though I feel like my solutions should work, they just don't.
If anyone can tell me how to achieve this (i.e. the actual specifics rather than a vague suggestion) then I would be very grateful.
Thanks for taking the time to read! :-)