Open MarioMey opened 2 years ago
I don't find emit_signal(), I can't import from godot or as attribute of any object, for example; CanvasLayer. I get
emit_signal()
CanvasLayer
AttributeError: 'HUD' object has no attribute 'emit_signal'
When creating a signal, it stays there as a <class 'godot.tags.SignalField'>, but I can't do anything with it.
<class 'godot.tags.SignalField'>
I found in examples/pong/pong.py that there's game_finished = signal() but code never emit that signal. Is it imposible?
examples/pong/pong.py
game_finished = signal()
Any solution to this? Maybe by not using signals, but some kind of python messages between nodes...?
https://github.com/touilleMan/godot-python/issues/199#issuecomment-750354045
I'm testing godot-python by converting the first tutorial from Godot Docs "Dodge the Creeps 2D", all GDScript files to Python.
I don't find
emit_signal()
, I can't import from godot or as attribute of any object, for example;CanvasLayer
. I getWhen creating a signal, it stays there as a
<class 'godot.tags.SignalField'>
, but I can't do anything with it.I found in
examples/pong/pong.py
that there'sgame_finished = signal()
but code never emit that signal. Is it imposible?Any solution to this? Maybe by not using signals, but some kind of python messages between nodes...?