![]() |
| | #1 |
| Registered User Join Date: Apr 2005
Posts: 1,342
| Allowing theplayer to shoot multi bullets. |
| Queatrix is offline | |
| | #2 |
| Registered User Join Date: May 2005
Posts: 73
| I have a t.v. I can turn it on and off.. but I can't seem to change the channel.... Any help? err.. I guess what I'm trying to say is... can u supply some more info as to your exact problem.. I would think making a man or ship have more than one shot at a time would be something rather easy to implement.. |
| Deo is offline | |
| | #3 |
| ∞ Join Date: May 2005
Posts: 970
| As mentioned this really is a trivial problem. But, if you show some source code or an attempt to solve the problem I'd gladly give my insight into the various methods I have tried. |
| BobMcGee123 is offline | |
| | #4 |
| Confused Join Date: Sep 2001 Location: Sweden
Posts: 3,125
| Make a list of objects instead of a single static object.
__________________ MagosX.com Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. |
| Magos is offline | |
| | #5 |
| Super Moderator Join Date: Aug 2001
Posts: 7,819
| Umm...
Code: struct point2D
{
float x,y;
};
struct Bullet
{
point2D Position;
point2D Vector;
float Speed;
};
#include <vector.h>
std::vector<Bullet> BulletsVector;
Bullet BulletsArray[100];
...
...
__________________ If you aim at everything you will hit something but you won't know what it is. |
| Bubba is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|