- Edited
Hello,
I have a weird problem with instantiating scenes. I have a player scene, which root node is simply a type of Node2D. That node is then attached to a Player.gd script. The player script extends Actor.gd which then extends Node2D. I use inheritance and gdscript's _init() -function.
So my problem is that whenever instantiating the player scene the Player.gd is always null. I have tried attaching multiple different kind of scripts but they are always null.