Currently the way I do it, is setup an Area2d and a collision shape child for each individual node and then I attach a script to the area2d
extends Area2D
func _input_event(viewport, event, shape_idx):
if event.type == InputEvent.MOUSE_BUTTON \
and event.button_index == BUTTON_LEFT \
and event.pressed:
sorite.hide()
Is there a faster way? suppose I want to hide each object the user clicks on, and only then I want to allow him to press on SpriteX
And I have a trillion object that can be clicked, what to do?