How to extend custom classes in Godot?
Written by Lertsenem in godot on Wed 25 January 2017. Tags: godot, gamedev, technical, short,
Say you want to create a generic class Animal that extends Node2D (or any other basic Godot class), with generic methods and property, and then a bunch of Nodes that extend that custom class. How do you do that?
The answer is easy, but the syntax is weird.
First create …