I want my enemies to randomly fire at my player, with a maximum of 2 times per each enemy.
You see, they are moving in and out of the screen, I want them to fire twice each time they are on screen, then travel off screen. I dont want them to fire twice in a row though, it should be random.
Any suggestions. I haven't seen any tutorials on enemy fire if someone would like to point on out to me though, I'd much appreciate it.