How do I set translation of a node on it's creation

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By noass

I want to add_child() in scene and on it’s creation set the translation to another node in the scene, but not to make each child be set to the nodes translation in _physics_process(delta).

:bust_in_silhouette: Reply From: rakkarage
var child := _pathScene.instance()
child.modulate = color
child.global_rotation_degrees = rotation
child.global_position = _world(tile)
_path.add_child(child)