Manageing many almost identical scenes

Godot Version

4.5

Question

Hi everyone, I am currently working on a variation of the old flappy bird mobile game as an exercize in getting more familiar with Godot. This game isn’t terribly difficult to put together but I ran into an unexpected dilemma. While creating the obstacles the bird has to jump through I realized that these obstacles were almost identical using the same script and same node structure. The only difference between all the obstacle scenes is the texture resource for the sprite and the shape of the collision polygon and it feels very inelegant and inefficient to have lots of scenes that do almost exactly the same thing. It seems like this should be a very common issue with a very easy solution. So is there a good way to deal with lots of nearly but not quite identical scenes. Thanks in advance.

Inherited scenes, right click on the “base” scene in the filesystem and select a “new inherited scene”, you can override the properties of every node, as you update the base scene so will the inherited ones (unless the property is overridden).

Wow that was a really easy solution to my problem! Thank man :smiley: