|Topic was automatically imported from the old Question2Answer platform.
I am currently struggling at making my spawning mobs despawn when I hit them with my bullet which are Area2D.
The mobs are RigidBody .
My bullet despawn aswell as my player when they touch the mob but the mob doesnt and I dont know how to make that happen
you should really show the code you have so we can see what you are doing and why is not working. Or even share the full project if you can. What is usually made is to connect the
body_entered signal of the Area2D to a function called
_on_RigidBody2D_body_entered and call
body.queue_free() from there.
p7f | 2019-01-13 17:59