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 / How can you make a realistic gun shooting

Author
Message
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 16th Jan 2005 04:11
i'm working on a 007 game.

at the moment you can't go threw walls and you have a gun in the corrner of the screen an a cross in the middle if the screen (aimer)

how can i make that gun realisticaly fire. like flash on the end of it . 1st i need to make a bullet come out of it. and also make it so that when you fire it plays a sound and also makes you reload every so often + displays the ammo

quite a lot of stuff
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 16th Jan 2005 04:34
Hem..Hem Allow me to introduce my friend 'SEARCH' He can help you too. All you have to do is scroll to the bottom of the page and type in a keyword realting to what you want to know. Chances are that someone has already posted something related to your keyword and you will find the answer there. Therefore eliminating the need for you too post. If however you cannot find the answer to your question then feel free to post but please do search first. It only takes 5 seconds and it could save you a lot of time by not having to wait for someone to reply.


Thanks to Animeblood for the Logo!
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 16th Jan 2005 05:21
i know how to make the gun fire my new freind the search helped me out but i could not find the rest?

can you help me with making the tip of the gun flash. ill have to use a sprite or something
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 16th Jan 2005 05:29
yes use a textured plain in front of the gun


Thanks to Animeblood for the Logo!
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 16th Jan 2005 05:33
how can i make it flash up when you shoot
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 16th Jan 2005 06:04 Edited at: 16th Jan 2005 06:11
i've got this code snippet from some one else. how can i make the bullet shoot from the cornner to center




i want the bullet to go stright forward
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 16th Jan 2005 19:19
Rotate the bullet the direction you want it to go.


Thanks to Animeblood for the Logo!
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 16th Jan 2005 20:29 Edited at: 16th Jan 2005 21:12
kind of works moved the bullet to the cornner. but look at the dbc script it will only fire right i want left to center .try executing it i want the bullet to go from the cornner to the middle

here is the code


ill email you what i mean picture
thanks

EDIT: is every one gone or is it just lunch
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 16th Jan 2005 22:59
LUNCH


Thanks to Animeblood for the Logo!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 16th Jan 2005 23:03
what are the positions for this line:
Quote: "Position object 2,X#20,Y#-100,Z#
"



Thanks to Animeblood for the Logo!
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 17th Jan 2005 02:36 Edited at: 17th Jan 2005 02:39
i think this is what you mean

the bullet has moved 20,0,-100

this put's the bullet to the corrner of the screen

oh yea saberdude did you get that email it's a picture.
basiccaly you can see where i want the bullet to go from to ??

GUN to CROSS
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 17th Jan 2005 03:13
Yes.Thanksyou for the postions. I will do it eventually. But at the moment i am working on a level loading system so It may be a while.


Thanks to Animeblood for the Logo!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 17th Jan 2005 03:14
Umm I can't see the bullet anywhere


Thanks to Animeblood for the Logo!
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 17th Jan 2005 03:23 Edited at: 17th Jan 2005 04:14
click and look on the right hand corrner of the screen. also i tryed to paste this code into a differnt program but it just got stuck in the loop so i got rid of the the loop. but it can't shoot more than once . at the start it automtically shoots once. how can i make it fire as many times as i like but continue with the rest of my program
+ i have got my problem of getting the bullet from the gun to the center
thanks
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 17th Jan 2005 03:24 Edited at: 17th Jan 2005 04:13
did you get the picture (email i sent you)

and here is some pictures of the flash i was talking about i want to make the a flash like these pictures below



DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 2nd Feb 2005 04:25
hi again !hi!

here's my take on the situation - i helped others with this demo

For when they said I couldn't, I did...

Attachments

Login to view attachments
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 3rd Feb 2005 00:09
thanks i think i have download this of the code base then forget about it. i rember a good flare picture or something.

whats the gun power meter?

i haave downloaded it! !! !
DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 3rd Feb 2005 08:07
that gun power meter is just something i though up - since the gun was for a shotgun i just though to let the player know when the gun was ready to fire again

For when they said I couldn't, I did...
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 4th Feb 2005 00:16
thanks
NinJA99
20
Years of Service
User Offline
Joined: 21st Jan 2005
Location: Windham, NH
Posted: 5th Feb 2005 22:12
Where's the pictures for the code?


END TRANSMISSION
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 5th Feb 2005 22:29
download the media from the code base ! !
DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 5th Feb 2005 22:47
which pictures ninja99?

For when they said I couldn't, I did...
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 5th Feb 2005 23:15
i think
Quote: "ninja99"
meant the flare picture for the gun
DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 7th Feb 2005 05:26
oh right

For when they said I couldn't, I did...

Login to post a reply

Server time is: 2025-05-25 01:56:11
Your offset time is: 2025-05-25 01:56:11