It is probably something I am misunderstanding about inheritance, but when I do this:
extends Node
class_name Enemy
export var sprite_node : NodePath
var sprite
func _ready():
sprite = get_node(sprite_node)
and then
extends Enemy
class_name AnEnemy
func _ready():
print(sprite)
it just tells me that it can't find the node sprite even though I have referenced a node path from the inspector. Is it not possible to define Export in the base class, or am I not getting something here?