Dragging screen/camera around

BrynjeBamsenBrynjeBamsen Member Posts: 188
edited May 2012 in Working with GS (Mac)

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?

Best Answer

Answers

  • simo103simo103 Member, PRO Posts: 1,331
    can you do a min,max on the x and y
Sign In or Register to comment.