Cloning at a certain position in 3D

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

Hello I don’t know if my other question came out but anyways. I making a survival game with a build system, I want it o work like this: A spatial called “Player builds” when the player build something it will cloned as a child of “Player build” but it uses it’s parent’s position please help me.

:bust_in_silhouette: Reply From: Inces

Cloning can be achieved by duplicate()
but is rarely a good sollution. It is usually better to create and save a scene of a building, and use instance() to create multiple objects of the same kind.
You can always refer to position and set it, like

building.global_position = Vector2(240,123)