Hi Nathan, thanks for the reaction.
Both background and actor are Area2D with a CollisionShape2D under it. Then I use the __input_event_ function in a similar way (see below).
Just to give you a flavour of what happens, I executed the project 10 times. When I clicked the actor, 7 times the background captured the event and 3 times the actor..
Background:
func _input_event(viewport, event, shape_idx):
if event.is_action_pressed('click'):
if not get_tree().is_input_handled():
print('Background handled the event.')
get_tree().set_input_as_handled()
Actor:
func _input_event(viewport, event, shape_idx):
if event.is_action_pressed('click'):
if not get_tree().is_input_handled():
print('Actor handled the event')
get_tree().set_input_as_handled()