Positioning area2d node using control nodes

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

Is it possible to align area2D instanced nodes using control nodes like margin container or centre container ?
There are couple of cards (Area2D with a Sprite) that are being instanced through code at position 2d, I am desiring to have those cards spread out with some offset and position 2d as centre, so I tried

for i in range(cards.get_child_count()):
    cards.get_child(i).position = Vector 2(30,0) * i

But in this case the cards spread out with the first card being at position 2d which is not as desired. So, can centre container be used to align the instanced cards .
Any help ?