How to create enemies who shoot?
bigticket21
Member Posts: 4
Sorry if this is the wrong section guys, I'm not very familiar with the forum...
But still, I have a problem. I'm making a game, and I don't know how to make the enemies start shooting.
So here's the idea. The enemies spawn at the left part of the screen, they run to the right part (only X attribute needs to change, they're not going up), and when they reach a point near the right end of the screen they need to stop running, pull out a pistol or some other weapon and start shooting at a desired target.
And that brings me to the problems I'm having:
1. What's the best rule to make them run?
2. How can I make them stop at that certain point of the screen (for example at X=450)?
3. How can I tell them to start shooting at a target (the target is non-movable)?
4. How can I make them to stop shooting when a certain event happens?
5. Is it possible to make a "special" enemy that follows my player around, tries to shoot it down, and how can I make it if it's possible?
Thanks again guys, I'll appreciate it very much if you can help
But still, I have a problem. I'm making a game, and I don't know how to make the enemies start shooting.
So here's the idea. The enemies spawn at the left part of the screen, they run to the right part (only X attribute needs to change, they're not going up), and when they reach a point near the right end of the screen they need to stop running, pull out a pistol or some other weapon and start shooting at a desired target.
And that brings me to the problems I'm having:
1. What's the best rule to make them run?
2. How can I make them stop at that certain point of the screen (for example at X=450)?
3. How can I tell them to start shooting at a target (the target is non-movable)?
4. How can I make them to stop shooting when a certain event happens?
5. Is it possible to make a "special" enemy that follows my player around, tries to shoot it down, and how can I make it if it's possible?
Thanks again guys, I'll appreciate it very much if you can help
Comments
also read all the docs under the support section of this website.