extends Node2D var cam var p1 var p2 func _ready(): cam = $Grid/Camera1 p1 = $Grid/Player1 p2 = $Grid/Player2 func _process(d): cam.position = 0.5 * (p1.position + p2.position)