How do I make my root node local to scene?

Godot Version

4.2.2

Question

Hi All,

I am trying to make multiple instances of one of my scenes inside another with gdscript, and I noticed some weird behavior (e.g. click-and-dragging one object in-game would move them all). I googled the issue and saw that making the node “local to scene” would help. I can’t for the life of me figure out how to do that. Anything helps!

“Local to Scene” is for resources, it isn’t an option when changing the position of nodes.

Can you share your scene tree? I believe you need to make another scene to instantiate all of your click and draggable objects as siblings

Here’s my scene tree for the one I’m instantiating as children
Scene_Tree

Cool and which scene are you instantiating this as children? Can you paste your script for instantiating?

Sure.

var row_card = card_scene.instantiate()
row_card.start_position = get_viewport_rect().size/2+i*Vector2(24*7,0)
unflip_cards.connect(row_card._on_unflip_cards) # The scene represents a card that can be animated flipping
row_card.player_movable=true
row_card.name="card"+str(card_count)
row_card.card_id=card_id
add_child(row_card)
card_count+=1

Thanks!