Hello!
I have the Area2d object with Sprite and Collision objects under it. I created the script that should listen to the left click of the user and send a log message on action. But it doesn't show the message. I created the input map left-click action. I attached the script to the Area2d object(Deck). Please help)
Code:
extends Area2D
func _input_event(_viewport, event, _shape_idx):
if event.is_action_pressed("left_click"):
print("Deck clicked!")