- Edited
I have one sprite behind another one and when I click on them, I only want the top sprite to receive the input event or react to it.
Each sprite is set up as follows:
Area2D
----> Sprite2D
----> CollisionShape2D
In a script attached to the Area2D node I receive the input event:
func _input_event ( viewport, event, shape_idx )
Is there a way to prevent the input event triggering the sprite behind?
Or perhaps if I have some event manager object is there a way to ensure that that object receives the event last so I can run some code knowing that i'm not missing out on any events that are yet to fire?