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 / Bullet Sound Not Working

Author
Message
Kequor
21
Years of Service
User Offline
Joined: 6th Feb 2004
Location: United States
Posted: 4th Mar 2004 16:20
Whenever I try to put in code so that when I shoot It dosn't sound right at all! All I get during the game is a buzz! Heres the code I'm useing.



Dont worry and keep a cool head.
Peter H
21
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 4th Mar 2004 16:26
Maybe becuase everytime the loop runs and the bullet is "fired" it loops the sound. and so the whole time the bullet is being "fired" it starts the sound every frame? I don't know for sure i didn't have time to fully look at the source code (i looked at it just not for an hour). So i may be wrong just a suggestion...

Isn't it horrible that whole families have to be torn apart by something as simple as wild dogs...
Saikoro
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: California
Posted: 4th Mar 2004 16:33
Replace the last if-endif in your code with this:



And this right after your "shooting" comment:



Hope this helps.

-Vash the Stampede

Intel Pentium 4 3.0 Ghz 1024MB Ram NVIDIA GeForceFX 5200 128MB 19" LCD DVI Viewsonic

Kequor
21
Years of Service
User Offline
Joined: 6th Feb 2004
Location: United States
Posted: 7th Mar 2004 00:42
Thanks guys! Because of your help I got it working!

Dont worry and keep a cool head.

Login to post a reply

Server time is: 2025-05-23 08:29:24
Your offset time is: 2025-05-23 08:29:24