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

Author
Message
FiShFuN4eVeR
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: Netherlands
Posted: 25th Jun 2003 12:29
Helolololo (LOL)

How do I make a code for rapid fire? Do I have to work with arrays? How do I do that? I looked at old posts, but I don't understand it...
Please help me...
Lets make free games!
Download them at www.fishsoft.tk
MattIsFunA
21
Years of Service
User Offline
Joined: 26th Mar 2003
Location:
Posted: 26th Jun 2003 19:11
I'm not sure what you mean. Basically, I have it so that as long as the mouse is held down, it goes in a cycle. So, you'd have a variable, C for instance, and each program loop, you'd increase it by one. When it was 5, you would shoot a bullet, and then you'd make it zero again. Then, every 5th trip through the "main loop", you'd fire a bullett. Or something like that, depending on how rapid you want the gun to fire. Hope this helps. I used to have some source code for this, but I don't anymore.

adr
21
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 26th Jun 2003 19:16 Edited at: 26th Jun 2003 19:17
I can't actually test this code now, but hopefully it should give you an idea

Uriel The Ignoble
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location: In a tiny box in the attic
Posted: 27th Jun 2003 05:39
i had the same problem, check out the post i started at just the Dark Basic Pro Discussion.

http://www.darkbasicpro.com/apollo/view.php?t=12291&b=1

cypher
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 28th Jun 2003 09:25
worked great for me shizzle, thanx!

Login to post a reply

Server time is: 2024-09-20 13:43:54
Your offset time is: 2024-09-20 13:43:54