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 / Gun shooting sounds... Please help.. Please!

Author
Message
Hockey07
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: United States
Posted: 9th Feb 2003 04:06
I have this code:



Now, I have to just tap the mouse button as lightly as I can to get it to play once. But if I hold my finger there for just less than a second, 10 miliseconds at the least, it sounds like a machine gun. Now, for a pistol, that is not right. But in my actual game Dark Wars it will be an MP5 as the main weapon, so a machine gun sound is great. But this is a pistol.. So can someone please help me with getting the sound to play only once when the mouse button is clicked.. Thanks!
AlamDV, NHL, NHL 2K3....... The best combination ever!
Hockey07
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: United States
Posted: 9th Feb 2003 04:07
Oh and can someone PLEASE help me so that if the gun shoots 10 times (if the mouse clicks 10 times) that the gun cannot shoot anymore and you need to hit a button to reload and it plays a sound I want, which is the reloading sound? Thanks!

AlamDV, NHL, NHL 2K3....... The best combination ever!
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 9th Feb 2003 13:44
Yeah, sure



Something like that.

Once I was but the learner,
now, I am the Master.
Archon
21
Years of Service
User Offline
Joined: 4th Feb 2003
Location: Finland
Posted: 9th Feb 2003 15:22
or try something like this:

if mouseclick()=1 and b=0 then play sound 1 : b=1
if mouseclick()=0 then b=0

i do it almost everytime like that

"death is my meat; terror is my wine"
-Asdrubael vect of the Black heart
Chenak
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 9th Feb 2003 15:35
this might work hopefully

if sound playing(1)=0
if mouseclick()=1 then play sound 1
endif


This will fix ur the sound prob.

Once you start down the Dark Path, forever will it dominate your destiny...
Hockey07
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: United States
Posted: 9th Feb 2003 15:56


Ya know, thats good but it does not let me move.... it just stays there. Now, that code REALLY DOES help me out in the part for the shooting sounds, and the reloading works fine too, but i cannot move.

AlamDV, NHL, NHL 2K3....... The best combination ever!
Hockey07
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: United States
Posted: 9th Feb 2003 16:09
Ok. It all works now!! So now what I'm going to implant into the game is an AK47.. This AK47 and the pistol in the game now are for demo use only. And MP5 and pistol will be added into the real game. But not a AK47 for you.

AlamDV, NHL, NHL 2K3....... The best combination ever!
Hockey07
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: United States
Posted: 9th Feb 2003 16:32
I guess the AK47 wont be added in the demo. Only the pistol. Now all I need is DarkMatter so I can add some enemies and I need a modeling program to model some little huts... Milkshape 3d expired so dont get me into getting that... Anyone got an idea for a 3d program i can use for that?

AlamDV, NHL, NHL 2K3....... The best combination ever!
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 9th Feb 2003 19:15
Timer:



Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 9th Feb 2003 19:15
This might work better:

Wait = 500 : `milliseconds



Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 9th Feb 2003 19:16
Argh! If you merge the 2 snippets then it might actually work

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 9th Feb 2003 20:08
Well yeah, you only asked for help with the gun sounds, you didn't want any movement. The ... in my code indicate that this isn't a full snippet, only the bits you need that you can put into your code, you will need extra stuff, like movement and initialisation and everything else.

Once I was but the learner,
now, I am the Master.
Hockey07
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: United States
Posted: 9th Feb 2003 21:56
Yes but I had a movement code in there and it didnt work no matter where I placed the codes.

But, I now have my gun sounds working fine, and movement fine, and reloading works but I am not using it with the 10 bullets just yet because the FPS really drops from that... But I'm all good now! I'm getting DarkMatter soon, too, so I'll have something to work on soon.

AlamDV, NHL, NHL 2K3....... The best combination ever!
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 9th Feb 2003 22:52
Hey- the doughboy is my avatar!

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
Hockey07
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: United States
Posted: 10th Feb 2003 01:29
Hey, he's gonna kill you with his gun for that!

Current Project: Dark Wars
130 lines of code so far
http://hometown.aol.com/Hockeycow07/rebel.html - The official ReBel Games website!
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 11th Feb 2003 19:51
DarkJedi - that model you wanted identifiying frm DarkMATTER - it doesn't exist. It's a hybrid of the Iraq and USA figures.

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 11th Feb 2003 20:01
Actually, i think I'll fill you in a bit more on the contents of DM:

- No sounds
- No Music
- Textures (Natural / Urban / Alien I think)
- Models in .x / .3ds
-- ~ 4 useable in military games
-- ~ 5 alien models
-- A good range of vehicles (esp. cars)
-- Guns (a good selection : sadly no reload animation)
- Skies
-- Good range of skyspheres + boxes (~ 30 I think)

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
Hockey07
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: United States
Posted: 11th Feb 2003 23:40
Which model? What model did I want indentified?

BTW, it doesnt matter at all if its an American soldier, soviet soldier, Iraq soldier, or German soldier.... Cuz your just gonna be one guy (the GI maybe, or the American soldier) with 3 other people with you, and you 4 have to kill the other soldiers.. There will be 3/4 levels then... Each with different soldiers. It doesnt matter where each is from, anymore.. But which model did I want identified?

Current Project: Dark Wars
166 lines of code so far
http://hometown.aol.com/Hockeycow07/rebel.html - The official ReBel Games website!
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 12th Feb 2003 00:54
the skies in dm are crap
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 12th Feb 2003 01:31
Quoth - Feel free to (try) and draw some better ones!

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Murdock743
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 6th Mar 2003 02:37
Rich how wold you draw a sky sphere.

John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 6th Mar 2003 14:01
Make a big globe in a modelling program and do the sky in any paint program.

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy! Oh ya, and Tat has a plugin for that!
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 6th Mar 2003 18:57
The skyboxes are ace, the skypheres are a bit dodgy but I probably couldn't do any better. There's a bit of colour banding on the skyboxes, but that probably wouldn't be noticeable to anyone in a fast paced action game.

Once I was but the learner,
now, I am the Master.
Murdock743
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 6th Mar 2003 23:01
If you dont like them make the level really tall but enclosed fog the top and there is the sky(you could use a partical effect to make snow so it looked correct)

Login to post a reply

Server time is: 2024-09-19 22:31:17
Your offset time is: 2024-09-19 22:31:17