How to place a scene in specific position

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

Hi guys, I’m making a card game. I have now created a scene, with Control as the root node and Panel&Label as card appearence. How ever, when I tried to load the scene into my main scene, which is a Node2D scene, I failed to set its position with set_anchor or set_pos, inside _ready(). The result is a nonsence window.

But if I do not set any thing and just load and instance(), the card appears in the top-left corner.

Any idea?

:bust_in_silhouette: Reply From: Inces

Control nodes use rect_position instead of position, so set it to the value of Node2d position.