Camera should follow player smoothly

Camera should follow the player smoothly within a scene and stop when it hits the edge of a scene.