i have a monster
monster see player
shoot = 0 (instance variable)
monster change color
monster spawn bullet (3 bullet)
set speed for bullet
set direction for bullet (3 differents directions)
it work perfectly, BUT when my monster is killed during the flash, and there are others monsters and bullet flying, it somehow select bullets flying and adjust their course.
i would assume the selected monster being dead, it would spawn no bullet, then no bullet should be in the selected object list ??
how should i change my code to avoid this bug ?
is this a bad use of wait action ?