Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / making a bullet and shooting it?

Author
Message
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 28th Dec 2003 01:08
I am making a tank game and need to make a bullet to shoot. How do I make bullet and shoot it out of the barrel of my tank. I have provided the source code for everything I have.

Guns dont kill people, death kills people.
PiratSS
22
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 28th Dec 2003 01:42 Edited at: 28th Dec 2003 01:46
Erm you should include the media.

look at the tank demo source code, search for "bullet".

Bascially you make the bullet(object)

Then you can either "shoot" it mathematically or point+move mode.

To stop it, just make some condition(z=>10) and hide/delete the object.

When you are shooting again, just position it at 0,0,0(or whatever) and show the object.

Dual AMD Athlon MP 2x1GHZ | IBM 15000Rpm SCSI 73.4 Gb X 2 | e-GeForce Ti4400 | Audigy 2 + 7.1 Surround sound | 17' Monitor | Ugly mouse

Login to post a reply

Server time is: 2024-11-25 22:32:58
Your offset time is: 2024-11-25 22:32:58