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.

DarkBASIC Discussion / Need help shooting in Dogfight game

Author
Message
Jixer
21
Years of Service
User Offline
Joined: 4th Feb 2003
Location:
Posted: 6th Feb 2003 17:16
I'm making a little jet combat game and I'm trying to figure out the best way to shoot machine guns at a target. Right now I'm creating a sphere and setting to the location of the plane, changing it's angles to match the planes facing and then moving it forward. The problem is the bullet seems to go backwards? My other question is... Is there a better way? Like using a particles to create a small burst of machine gun fire? Shootguns and UpdateBullets are both subroutines called in my main game loop. Here is the code:



Any help would be greatly appreciated.

Login to post a reply

Server time is: 2024-05-18 16:14:22
Your offset time is: 2024-05-18 16:14:22