How to set the position of the Camera without parenting it?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mateusak
:warning: Old Version Published before Godot 3 was released.

In a case where you have 2 players and want the camera to be in the between, how do you set the position of the camera without getting the little lags of the process or fixed_process? Is there something like late_process which is executed after physics?

:bust_in_silhouette: Reply From: 2D

Have you seen this post?

What is your camera currently parented to?

An option is to create a Node2D and put it below your player nodes in the scene tree. Parent the camera to this new Node. Have this node move to location between your players and also set the zoom, if needed.