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?
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.
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.