I'm really stumped, and hoping someone has an insight.
In my game, various weapons are fired from a turret on the right side of the screen- machine guns, lasers, etc.
The "machine gun" fire and "laser" fire lines look very similar; they're basically:
Repeat while Player 1 pushes fire
Weapon selection counter = (# for that particular weapon)
"Launch Readiness" object = stopped (this object changes to different animations to temporarily disable firing in order to regulate the speed of different weapons firing)
Ammunition for weapon >0
(Player object) launch object (bullet/laser) at speed 100
Change (launch readiness object) animation to (launch machine gun/launch laser)
Subtract 1 from (Ammunition for weapon)
Play sample (gunshot/laser.)
The only real difference between the two is that the "Launch readiness" animation for the laser is a tiny bit shorter.
And yet, while the machine gun seems to always fire a steady stream of bullets without problems, the laser occasionally just stops firing for no apparent reason.
It keeps making the sound effect. A counter I designed to tell me how many "laser beam" objects are on screen *says* the number is increasing. And I'm well below the maximum number of objects allowed. It just doesn't actually seem to create those laser beams, or if it does, they aren't moving (staying hidden under the player object) and disappearing a few moments later.
Does anyone have any suggestions?