I have a CharacterBody2D scene with a script attached. I have set pickable to true in the inspector, and I've also hooked up the input_event signal to the script.
Here is the full script:
extends CharacterBody2D
signal player_selected(pos)
func _on_player_selected(pos: Variant):
queue_free()
func _on_input_event(viewport: Node, event: InputEvent, shape_idx: int):
print("click")
However I'm unable to get the print to actually print anything, which indicates to me that the input_event signal isn't firing. Any ideas why it's not working as expected?