Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Suchaaver Chahal | |
Old Version | Published before Godot 3 was released. |
In a container Control Node, I have an regular node and then an area 2D node, like so:
- Control editor_window
-Node2D gun
-Area2D gun_base
Now, in a separate scene, I’ve been able to send a input_event
signal from the gun_base to a script in gun (this test scene did not have the control). In this scene, however, I have a script attached to the Control. Here are the relevant parts:
func _ready():
gun_base = get_node("gun/gun_base")
gun_base.connect("input_event", self, "select_attachment")
func select_attachment(view, event, shape)
print("GOT EM")
func _input_event(event):
DO SOME STUFF, NEVER CALLS accept_event()
I can’t ever get GOT EM to print, it just never fires. What have I done wrong? I feel like any event goes to _input_event
and never propagates further.