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 / Multiple Bullets!

Author
Message
BaZko
21
Years of Service
User Offline
Joined: 24th Sep 2004
Location:
Posted: 26th Aug 2005 06:01
I want multiple bullets that are fired to move and detect collision at the same time but i cant figure out how if the guy has fired more than 1 .

Here is the firing code:


Thanks for any help
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 26th Aug 2005 10:23
--> Maybe <--

You can create as much bullets before the loop as you have in 1 clip? And you'll only need 1 array: bulletlife(100).
I don't say it's the best idea, but it's easy to calculate how much bullets have been fired...

Immunity and Annihalation makes Immunihalation...
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 26th Aug 2005 10:37 Edited at: 26th Aug 2005 10:37
Copied this from an old space shooter game I did.



Your signature has been erased by a mod because it's larger than 600x120...

Login to post a reply

Server time is: 2026-07-11 18:59:59
Your offset time is: 2026-07-11 18:59:59