Godot Version
4.4.1
Question
I’ve got a global scene with a signal in it signal game_start. This signal returns an error whenever I connect it to something, specifically Invalid type in function 'connect' in base 'Signal'. Cannot convert argument 1 from Nil to Callable.
Here is the code:
signal game_start
func _ready():
game_start.connect(_on_game_start())
func _on_game_start():
print("game start! Global call")
game_start is being called by another scene, but I get this error before I even emit the signal. Unsure of why this is happening considering I’ve made other signals in the past with no issue in the same way.
I also tried connecting it via the Node window but that just plain doesn’t work. It says its connected and everything but doesn’t actually work when the signal is emitted