So i am creating a game called Asteroids (yes i need to choose a new name lol) thats an arcade shooter.
I am having an issue trying to code the Alien sprites to fire there weapons. In my game i have aliens that move in a straight line only towards you. What i want is to make them fire there weapons ever 1-1.5seconds. So far any attempt i have had in coding this has failed. I am trying to base it off the way I fire my weapons.
Anyways as I know many of you are badass at Java 2d, so i was wonding if you could take a look at my code and maybe see if you can code that part so that it works. All the coding i have done to try and make the alien weapon fire is in the “Board.class”, “Alien.class” and “AlienMissile.class” I am having the issues in the Board.class though. I have commented out all my alien weapon fire code that doesnt work so that when you run it at fire you can see the aliens themselves move down the screen on level 2 and get an idea of what im talking about.
Here is the .rar file that has the folder with the souce files and images. Its in Eclipse’s folder format so you can paste it into your workspace.
If you do get this to work could you please upload the source files and give me a link or post the code/changes to the code you made so that i could use it. And explain to me whats going on in it if you can, I love to learn.
Many many thanks to everyone that has replied and was able to help.
Note: Im a complete noob at java 2d. So please put in an explanation if you post code. Thanks

After about two months of on and off working I have come up with this: