def METHOD_NAME(self):
    # This will center the camera on the player.
    target_x = self.player_sprite.center_x - (self.camera.viewport_width / 2)
    target_y = self.player_sprite.center_y - (self.camera.viewport_height / 2)
    # This limits where the player can see. Ensuring they never go too far from the transition.
    if -self.camera.viewport_width / 2 > target_x:
        target_x = -self.camera.viewport_width / 2
    elif target_x > self.background_1.size[0] * 2 - self.camera.viewport_width / 2:
        target_x = self.background_1.size[0] * 2 - self.camera.viewport_width / 2
    if -self.camera.viewport_height / 2 > target_y:
        target_y = -self.camera.viewport_height / 2
    elif target_y > self.background_1.size[1] - self.camera.viewport_height / 2:
        target_y = self.background_1.size[1] - self.camera.viewport_height / 2
    self.camera.move_to((target_x, target_y), 0.1)