Do duplicated instance behave the same?

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


I am a total beginner here and just start coding on Godot.

I was following “Instancing” under “step by step” on Gogotenging’s online document. I downloaded the project and tried to follow the instruction. I added several instances of balls by ‘duplicating’. Then I followed the instruction to edit the instance (see here)

I can change the colors on different balls, but however, when I tried to change different balls with different bouncing rates, I cannot make it happen. Strangely, I can only change the bounce rate on one instance (ball #5), but not on others. No matter how I change just one other ball, all others’ bounce rate change (coupled together). I have no idea how I changed ball #5, from the code I also cannot see the difference. I didn’t change any code at all, I just link the main scene to the ball scene. (I learned godot coding from other instructions.)

This instruction says “Notice that a grey “revert” button appears next to the adjusted property. When this button is present, it means you modified a property in the instanced scene to override its value in the saved scene. Even if that property is modified in the original scene, the custom value will remain. Pressing the revert button will restore the property to the value in the saved scene.

But I tried to do override on any one (except #5), they still change in union. If anyone can tell me what’s wrong, it will be very much appreciated. Thank you.


My zipped project is provided on this link:

:bust_in_silhouette: Reply From: Dlean Jeans

This is because all the balls share the same PhysicsMaterial. You would need to create a new one for each ball to change its Bounce value.

Thank you very much, Dlean Jeans.

I used copy-and-paste and saw the values are all there and didn’t know if I reset one ball’s Bounce value, other balls will be changed too (because they are not set by adding “New PhysicMaterial”).

In this way, Godot can have all balls bounce in the same way (if just copy-and-paste after the bounce value is set), or have balls behave differently (add “New PhysicMaterial”). Very smart.

I love it.

alexch2441 | 2019-05-18 14:36