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 / Good FPS shooting. How?

Author
Message
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 7th Mar 2005 00:49 Edited at: 8th Mar 2005 03:58
Hi

Me and The Nerd was thinking about how you make that kind of shooting like in a pro FPS game? Not just some ugly plain flying out from the gun.
How do you make shooting like in this game:

http://forum.thegamecreators.com/?m=forum_view&t=49880&b=8

???

Any tutorials or help will be highly appreciated

KLU 007
&
The Nerd
[EDIT] By the way, we're using DarkBASIC Pro

Zokomoko
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 7th Mar 2005 01:22
Quote: "
Not just some ugly plain
"


Try texturing the plain with some glow texture such as the attached above.
Ghost it, and fade it to 1000.
That works for me

Attachments

Login to view attachments
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 7th Mar 2005 02:06
Or you can try shooting a line from the gun and checking for collisions with it, like a raytracer.

Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 7th Mar 2005 02:50
Thank you

But we're looking for a tutorial or code snippet.
None of us have that much experience with FPS's, so a tutorial or code snippet would be nice


Check out PanzerGames at: http://www.freewebs.com/panzergames
æ ø å
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 7th Mar 2005 03:51 Edited at: 7th Mar 2005 03:52
In my game, bullets are juste some textured and ghosted Plains.

(the texture is attached)

Attachments

Login to view attachments
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 7th Mar 2005 03:58
We would like an explanation on HOW you make those bullets fly out from the gun
How do you make them move that fast, and keep 'em comming like, fx if you're shooting with a machine gun?


Check out PanzerGames at: http://www.freewebs.com/panzergames
æ ø å
Zokomoko
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 7th Mar 2005 04:02
Lets say you have a player object.
Position a limb on that player's hand/gun. That'll be the starting position of the bullets. Then you set the bullets to the gun's orientations, and move them.
You should also, recycle bullets.

But could you be a bit more specific about what exactly are you having difficulties with ?
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 7th Mar 2005 06:57
That's what a raytracer is for. When the machine gun is shooting, the model does soem animations for effects purposes, and since the "bullets" are moving so fast, you can't see them. And if anything is in the way/colliding with the invisible line, they react to it. Sorry I have no code.

Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 8th Mar 2005 03:57
It's okay
But if anyone has some code that could help us understanding how to make that kind of shooting, it would be cool if you would share your knowledge with us
Almost the only thing we need to learn to make a good First-Person Shooter game, is how to program the shooting.

Login to post a reply

Server time is: 2024-11-13 19:55:17
Your offset time is: 2024-11-13 19:55:17