I'm working on my first game with Godot. I've watched videos and read a bunch, but I can't figure this out!
I am making a puzzle game where I need clickable tiles. I created a node that is an Area2D containing various sprites, a label, an animation player, and a CollisionShape2D so that I can use the inputevent signal. When I run the tile scene by itself, the signal works, but when I place the tiles in the main game scene, the inputevent function doesn't seem to be called. The input_event signal is connected to the node itself. Below is the code, I'm not even having it do anything right now except print to the output tab just to try it out.
func _on_ItemTile_input_event(viewport, event, shape_idx):
if event is InputEventScreenTouch:
if event.is_pressed():
print("object click" + str(item_number))
else:
print("object release" + str(item_number))