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')
mouse is set to simulate touch
oh, weirdly it works when not instantiated, gotta update the instance
didn’t work yet…