Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use emit_signal()? #343

Open
MarioMey opened this issue Jul 7, 2022 · 1 comment
Open

How can I use emit_signal()? #343

MarioMey opened this issue Jul 7, 2022 · 1 comment

Comments

@MarioMey
Copy link

MarioMey commented Jul 7, 2022

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 get

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.

I found in examples/pong/pong.py that there's game_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...?

@cridenour
Copy link
Contributor

#199 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants