+1 vote

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 inputevent(viewport,event,shapeidx):
if event is InputEventMouseButton \
and event.button
index == BUTTONLEFT \
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

Godot version 3.3.4
in Engine by (54 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.