That’s possible. Replace the node inheritance by your script.
extends "res://your_script.gd"
Thats great! But will I then be able to call functions like get_node(“MyNode”), get_pos() etc.? I mean I thought the extends Node2D part is for accessing these basic functions?
Yugo | 2016-03-31 19:12
In my example if “your_script.gd” extends from Node2D you have access to all Node2D functions in this script and also the functions you created in “your_script.gd”.
In the editor the “Classes” button shows the inheritance tree.
DriNeo | 2016-03-31 20:20
Thank you so much DriNeo!!
Yugo | 2016-03-31 21:19
what happens if you override the _ready() or _init() functions. Is there a way to call the super class’s function? Something like: