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()? #342

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

How can I use emit_signal()? #342

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...?

Also, when I create start_game = signal() in HUD.py, unlike pong.py, that signal doesn't appear in Node Signals panel... and I don't know why.

@MarioMey
Copy link
Author

MarioMey commented Jul 7, 2022

When I click in "Comment", it took me to a 404. So, I open a new one: #343

@MarioMey MarioMey closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2022
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

1 participant