Programming a shooter game in AS3.0, need some help
5 replies, posted
I'm programming a shooter game in AS3.0 for a Flash class. I'm not so great and I got a bit of a problem.
So far, I can move my ship, make it stop at the edges, shoot missiles and mines,yadda yadda yadda.
The challenge is this:....I need to make the enemies shoot....
But since they spawn randomly on the scene and they are created from an array, making them shoot is a nightmare.
I can't figure out how to make the enemy missile appear at the enemy position, since there's multiple enemies and they don't have a fixed posision.
I need some tips. I guess I might know how to make them shoot only once every 2 seconds, using a timer, but for the rest.....
And please, don't be too technical, I'm still a novice.
Pick a random enemy in that array of enemies, make a new missle at that enemies position.
What is the problem with that?
Assign an array to the coords of every ship? If I understood that right...how the hell do you even make games, good sir?
...Have you ever used OOP?
Sorry, you need to Log In to post a reply to this thread.