My problem is the camera. I want the camera object to stop moving at the same time the view-port edge hits the edge of the Layout. Currently the camera stops when the view-port edge gets to the edge of the layout and the camera object keeps going. Once I start moving the camera object in the opposite direction there is a small lag before the camera starts moving with the camera object again.
Is there a simple way to fix this? The camera isn't attached to a player object. The "Player" of the game is controlling the hidden camera object at all times. The only way I thought of fixing this was having a camera object mimic the movement of a hidden player object, but at a different rate of speed than the player object. If both objects start at the same spot in the middle of the layout, then no matter what path is taken they will always be on top of each other in the middle of the layout. I know this will cause the distance between them to get rather large depending on the size of the layout. I am going to defeat that using layout width/height in the formula. I just need a simple sample to have different speeds, I can do the harder math parts to fix the gap.
I would like an easier solution, but if one isn't available I just need an example on how to have an object mimic another object at a different rate of speed. I am not talking following the exact same path, just mimicking 8 way movement.
Is it possible to just set a hard x and hard y limit? Camera Object can only move between X20 - X2000 and Y20 - Y2000? If so I will incorporate Layout Scale to help soften the limit.
Thanks in advance.