Hi there! I'm new to the forums, trying Godot for my pet project.
I'm trying to port some code which makes heavy usage of the state pattern and subclassing, but I'm not fluent enough with Godot to reach my goal, I hope you can help me.
Here's a oversimplified example which fails:
var status = Status.idle()
static func idle():
static func jump():
It fails no matter the order of declaration or usage of these classes with a
Parser Error: Identifier not found.
My question is: Is there a way to allow for such constructions in Godot?