I'm starting a project and decided to go ahead and use GDScript. I'm new to the engine and I encountered a problem with the function get_parent(). I checked in the documentation and it is a function of Node, which my class extends.
const SUMMON_RESOURCE = preload("res://src/Scene/Summon.tscn");
var NewSummon = self.SUMMONRESOURCE.instance();
(Note: CardBase extends Node2D and therefore Node)
The error I got was: "error(9, 1): The method "get_parent" isn't declared in the current class. I don't see how this could be the case, so I'm hoping for some helpful input.
Thanks in advance!