Fire Bullet Extension, all bullets deleting themselves when various object shooting

Hello Everyone. I’m having an issue with the fire bullet extension, that bullets are disappearing in mid air when I have more than one object shooting at the same time. I have 3 objects shooting, one that I shoot by pressing left mouse button, the other 2 shoot automatic.

If only one of the 3 objects is shooting then, I have no issue, but whenever 2 or 3 are shooting, bullets begin to disappear in mid air, or one of the objects will not shoot for a moment.

The events are pretty simple, one shoot toward the mouse position, one rotates to the “enemies” and shoot at them, and the 3rd one is constantly rotating and shooting.

Does anyone have any idea what could be happening?

Nothing looks obvious to me. Do you have events that move or delete bullets? Maybe too many bullets are being deleted.

Thanks for responding.
I’m using the Destroy when outside of the screen behavior on the bullets objects. But I tried without and it doesn’t solve the issue yet. But definitely bullets are been deleted, cause I add a debug text on screen with the count of bullets and when the bullets disappear the count goes down.

I’ll keep trying to solve, I’ll see what happens if I fire the bullets with events without the extension, that way I can discard or confirm if the issue is with the extension or not. Any other suggestion will be welcomed.

Ok, so it looks like it has nothing to do with the Fire bullet extension. I used events to shoot instead of extension and the same thing happened.
Here is a few more pieces of information:

  • It’s not about the amount of objects in game, already debugged that, when only one object is shooting it does not happen, but when I have 2 or more it does, regardless of having less object instances in scene.
  • In my events I’m using forces to move the bullets and a scene timer for firing rate, just like in this example: Shoot bullets - a game example from the GDevelop game making app | GDevelop

Any suggestions what should I look into?

Can you post a screenshot of more events? Particular ones that either move or delete the bullets. Are you using any other behaviors?

1 Like

I would create new scene copy that events from screenshot and see does bullets get destroyed

I bet they would not which would indicate you either have some behavior or event that simply delete them

1 Like

Thanks Again, I have been debugging the events that delete the bullets and finally found out what was happening. I was using the Bullets group to erase the bullets instead of the specific bullet, and that was deleting all bullets whenever there was a collision with an enemy.

And here is how it was solved:

Thanks for your help!

1 Like