How to detect clicks on enemy?

Godot Version

4.4.1

Question

How to detect clicks on enemy?

Hello everybody I’m having problem detecting clicks on the enemy. I’ve tried using a signal from the enemy’s collision shape 2d input_event signal but that didn’t seem to work

image

image

does your enemy body have Input Pickable enabled in their properties?

fixed it, thanks :DD
Enabled pickable inputs and put the signal to enemy. From there i’m calling player’s animation tree to set condition.