I have a problem in detecting collisions in my game.
The game has an Enemy scene (kinematicbody2d) that has a function for creating collisionshape2d and assigning rectangle shape to it. I am using this function inside a Spawner scene to define multiple enemies with different properties as enemy texture (black, red, ....), collision shape extents, power, speed, .... etc.
What happens is when the bullet from the player misses the first enemy (eg. black one), the following black enemies can't be killed (queue free from scene).
Any help?