New Object from another Object without repeating code

Godot Version

4.2.2

Question

` I want to make a new object with some parts of the script of another object. My problem is, I don’t want to repeat code.

How does the concept of classes work in Godot?

Lets make a basic example. I have a Car class but I want to create models around the Car class. How can I achieve this in Godot?

Thank you so much in advance! `

Please see https://www.youtube.com/watch?v=zask9XCe2Yw

I also like inner classes and shared code scripts like libraries.

1 Like

thank you! I really appreciate it!

1 Like