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 / Machine gun shooting

Author
Message
TooNRPG _dot_ tk
20
Years of Service
User Offline
Joined: 20th Jun 2004
Location:
Posted: 20th Jun 2004 23:29 Edited at: 21st Jun 2004 00:13
Hi, I am new here (in the forum), And i was wondering if it is possible to have machine gun shooting without making thousands of objects >.<
Is there a way? thanks in advance

=-D
Doomwad
21
Years of Service
User Offline
Joined: 29th Dec 2003
Location:
Posted: 21st Jun 2004 06:57
Well sort of... it works fairly well if implemented right... pretty much you make the one object "bullet" move really fast. And whenever it collides with something, or leaves the map you hide it and put on the end of the gun again.

I'm using DB Classic.
o0 Static 0o
21
Years of Service
User Offline
Joined: 27th Aug 2003
Location: Belgium
Posted: 21st Jun 2004 18:14
Just make a 20 to 30 bullets and always move the next bullet when you shoot.
And when you are at the 30th bullet you just go back to the first one.
TooNRPG _dot_ tk
20
Years of Service
User Offline
Joined: 20th Jun 2004
Location:
Posted: 21st Jun 2004 22:56
well, i think i am going to try doomwads idea, and if it fails i will have a go at your idea supersoldier
Thankz guys!

=-D
Axelman
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 22nd Jun 2004 12:05
just do a search. there are hundreds of ideas and code snippets for a machine gun effect.

Cya

CURRENT PROJECT: Enemy At The Gates
TooNRPG _dot_ tk
20
Years of Service
User Offline
Joined: 20th Jun 2004
Location:
Posted: 2nd Jul 2004 04:33
I couldnt find any :-(
Any links?

=-D
Axelman
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 2nd Jul 2004 18:32
http://forum.thegamecreators.com/?m=forum_view&t=18140&b=10

it's pretty good, if its to slow then change the bullets(Spheres) into plains.

CURRENT PROJECT: Enemy At The Gates
TooNRPG _dot_ tk
20
Years of Service
User Offline
Joined: 20th Jun 2004
Location:
Posted: 5th Jul 2004 01:04
Sweet, I Love All You People! (in a good way, not a wierd twisted gay way) lol. Jk, thanks for the link. I think buy having a look at jessticulars code I have cracked it, thanks again

=-D
Axelman
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 5th Jul 2004 19:50
no probs, thanks jess!

CURRENT PROJECT: Enemy At The Gates
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 5th Jul 2004 21:43 Edited at: 5th Jul 2004 21:44


I'm special.

Glad that my code helped yet another member in need.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Hamish McHaggis
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 5th Jul 2004 21:56
I don't think making the bullets visible is really the best way, making a cool bullet zoom trail is what I like . And definitly don't used spheres for bullets, use textured planes pointing towards the camera.

Athelon XP 1600+/Radeon 9600 Pro/256 RAM
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 5th Jul 2004 22:43
That's too true Hamish... All of it.

Repsect.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
TooNRPG _dot_ tk
20
Years of Service
User Offline
Joined: 20th Jun 2004
Location:
Posted: 6th Jul 2004 02:39 Edited at: 6th Jul 2004 02:40
Yeah, thanks JessTicular. Your bullet code really helped. I was having loads of trouble because of that problem* ^^
hope you don't mind me using some of it, :-p

=-D
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 6th Jul 2004 14:46
Go for it Toon, I put the code up so people could use it

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
TooNRPG _dot_ tk
20
Years of Service
User Offline
Joined: 20th Jun 2004
Location:
Posted: 6th Jul 2004 22:06
Thanks, you can close this now if you want
And thanks everyone else for just replying

=-D

Login to post a reply

Server time is: 2025-05-24 22:30:43
Your offset time is: 2025-05-24 22:30:43