Is it ok to set position anywhere in sub scene?

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

I am confused about position in sub scene.

I create a sub scene eg “Player” sprite in Player.tscn, then I instance it to Main scene.

Should I position my player node in Player.tscn at Vector2(0, 0), is it ok to place it anywhere? Does it mater?

I test, and found no difference behaviour about Player object in main scene.

Is there any doc about it?

If the question is whether you can place your player node any where you want, then the answer is yes; you can place then wherever you want, or wherever it is necessary, for the requirements of your game.

Ertain | 2017-12-01 04:24

:bust_in_silhouette: Reply From: rolfpancake

It just matters if you want to instantiate your player while your are already in-game.
If you want to place your player then at a specific position you have to handle the offset if you did not move your player node to (0, 0) in your player.tscn.