Hello Godot community,
Below is the structure I'm having :
Control
--->GridContainer
------> Area2D
------------> TextureRect
------------> CollisionShape2D
When I connect the inputevent signal of my node Aread 2D to the main gd script (in the same scene), the follow code is not working :
func _on_DominoePieceA2D_input_event(viewport, event, shape_idx):
if (event is InputEventScreenTouch):
if (event.is_pressed()):
print_debug("bingooooo")
I do receive an event, but is_pressed returns false, moreover, it's not working when I export it on phone.
So I was wondering if the structure I'm having (control and Node2D) is a valid structure.
What I'm trying to do is having images in a container, I'm trying to perform a drag&drop/click on those in order to move them into another container, so if my implementation is not valid, I'm open for suggestions :).
Thank you for any help.
Seli