Camera Follow min, max question
So I have a dude who I want to control the camera if he goes off the initial screen but have the ability to do the swipe function of tshirtbooths menu (to peak ahead). I two levels where each works separately but how can I combine them?
I think...that I should have a boolean so when the dude reachs the edge of the screen he controls the camera, but if hes not touching the edge of the screen the player can swipe and peak ahead, but without pushing the dude out of the screen. Haven't gotten it to work. Suggestions?
I think...that I should have a boolean so when the dude reachs the edge of the screen he controls the camera, but if hes not touching the edge of the screen the player can swipe and peak ahead, but without pushing the dude out of the screen. Haven't gotten it to work. Suggestions?
Comments
CamActor Controls Camera if ControlCam = false (default)
this works fine.
Then in my player I have his attributes TargetX, TargetY, and he moves with OffsetX,Y as well. I combined these so PlayerPositionX = TargetX+OffsetX.
So if PlayerPositionX > game.Scene.Size.Width+OffsetX > turn ControlCam true
if controlCam true= Control Camera otherwise ControlCam = false.
It sort of works but when he hits the edge of the screen the camera goes crazy and I can't swipe anymore. Help!