Dragging screen/camera around
Would love to achieve a google map kinda effect with the camera contrained not to go outside my screensize
I have more levels that are bigger then the original screen size
iam currently using a unlocked(instance) actor to gain access to current scene and camera origin X,Y which iam contraining to mouse position.
My problem is - iam not able to get to the edges of the screen without making a offset by adding a value to my mouse position. The problem with that is i now can see beyond the edges of the screen that dont have any graphics

Thought about spawning an actor with a control camera behavior that collides with the walls surrounding my lvl.
is there a better way do doing this?
Answers