0 votes

i have a bullet scene :
https://imgur.com/Gg08sTV

and an enemy scene:

https://imgur.com/a/4qMCfuR

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()
in Engine by (37 points)

1 Answer

+1 vote
Best answer

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.

by (3,227 points)
selected by

Wow thanks alot!!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.