How to improve responsiveness to mouse clicks on Collision2D Shape

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cloa513

Normal coding leads to some mouse clicks missed and a slow response.

In Subtile (there are 729 of them) with Area2D- child is Sprite (child label) child is Collision2D,
func _input_event(_viewport,event,_shape_idx):
if event is InputEventMouseButton
and event.button_index == BUTTON_LEFT
and event.is_pressed():
self.on_click()

func on_click():
	get_parent().trigger(num)
	for i in get_parent().get_children():
		if i.is_in_group("Subtiles"):
		i.visible=false

In Medium Tile with child Sprite which SubTile is a Child of

func trigger(_numshow):

	get_node("Label").text=str(_numshow)

Medium is a child of Square
Square is a child of Node2D