Question about Scene inheritance and animations

Godot Version

v4.5.1.stable.arch_linux

Question

I want to preface this with the fact that I’m very new to this so forgive me If i say something very stupid.

I finished the 2D tutorial and as an next step, I wanted to separate the Mob scene into 3 different scenes ( Mob, Flying_mob, Swimming_mob) because I wanted more flexibility with the animations/collision shapes etc.

What I did was create 2 new scenes that inherit from the initial Mob scene. However I noticed that in the inherited scenes, I couldn’t change the animations sprite frames.

  1. Since I’m not changing the objects, I would expect to be able to change their configuration at least. Is this expected behaviour or am I missing something/doing something wrong?

  2. Is there a best-practice to achieve the desired effect? My problem is that the sprite animations and the collision shapes don’t really match that well. That’s why I wanted to create different scenes - so I have more control over them.

My current ‘solution’ is to create a new ‘abstract’ Mob scene, and create 3 inherited scenes Walking_mob, Flying_mob, Swimming_mob).

Thank you. And please let me know if any of the above doesn’t make sense.

1 Like