Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | wahyuadiramadan |
ive a project that using auto instancing an object and its created area2d by default name, and othe instance name is @name@2,@name@3,@name@4
and i ve an bullet which is it going to delete its self and the object that is collided wit the bullet
im using function area_shape_entered()
and delete it with the name “name”
but it wont delete if in the scene there are more than one object
the function will delete the area with name “name”
but it wont work for other object with name “@name@2”/“@name@3”/“@name@4”
how godot detect that word “name” is in “@name@2” too?