No worries!
~Sol
Actually, it is still doing it but I think I figured out why.
This is basically what I have
On timer
--animate
-- Wait short time (0.3 seconds or so)
-- Monster spawn bullet object
-- Set bullet direction
I actually thought this through while away from project and testing but I think this is why it is happening:
If the monster is hit/damaged and destroyed between the timer going off and the spawning (so 0.3 seconds time window) there is no new bullet spawned. Only one monster is picked and it is destroyed so no monster is left picked to spawn a bullet. And since no bullet is spawned then setting the bullet direction will pick ALL of the bullets.
So I was thinking of changing it to:
-- Monster spawn bullet object
-- Set instance variable (to the angle)
On bullet created
--Set direction to instance variable
So even if monster is destroyed and all bullets are picked it will just set an instance variable that won't be used again.
Will the On bullet created fire before the instance variable is set though? Should I put a miniscule wait in there? How small? 0.05 seconds?
Or can anyone think of a better solution?