Instancing Scenes Question

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

Hi,

I don’t know if I’m doing this correct in Godot.

I’m making a 2D platformer that has ladders. The Ladders scene root is an Area2D, along with a Sprite and a CollisionShape2D.

I instance the ladder manually into the Main Level scene and duplicate the ladder so I have two. When I attempt to change one of the ladders heights (a repeating Sprite) by making the children editable, there’s no problem. But when I then try to adjust the Ladders CollisionShape2D height, it affects both??

What am I doing wrong?

How can I make each Ladder instance be edi

:bust_in_silhouette: Reply From: magicalogic

Right click and copy the ladder then paste it. That way you can change their properties separately.

:bust_in_silhouette: Reply From: omggomb

CollisionShape2D has a “Shape” resource which defines the shape. Resources don’t get duplicated when copying instances, instead they are shared for every copy. You have to use “Make unique” in the resource dropdown so that each instance of CollisionShape2D uses its own Shape resource