How to use the input_event signal?

exactly like that, and it doesn’t work:

func _on_area_2d_input_event(_viewport, event, _shape_idx):
	print(event) # prints nothing
	if event is InputEventScreenTouch and !event.is_pressed():
		if is_egg:
			timesTouched += 1
			$anim.stop()
			$anim.play('hatch')


image
image
image

mouse is set to simulate touch

oh, weirdly it works when not instantiated, gotta update the instance

didn’t work yet…

oh. Area2D monitoring not working in Godot 4 - #2 by system