enemy wont disappear when encountering bullet instance

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Rashid

i have a bullet scene :
Imgur

and an enemy scene:

in the bat i have the following signal but for some reason it wont work and i am not sure why!:

func _on_Hurtbox_area_entered(area):
$bat.hide()
queue_free()
:bust_in_silhouette: Reply From: Magso

The area_entered signal is detecting an overlapping area not a PhysicsBody (rigid, static and kinematicbody) but your bullet is a rigidbody so you need the body_entered signal.

Wow thanks alot!!

Rashid | 2020-07-17 17:02