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 / muzzle flash

Author
Message
DarkSith
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 5th Jun 2003 15:13
I need a problem ironing out here.

I have the mouse as my fire button but I need help on a few things:

1. How do I fire two bullets at the same time

2. After the gun has fired to stop the muzzle flash appearing until the mouse is pressed again, here's my code (i will leave the crosshair out, the model is on the DBC disk)

3. Some weapons will be automatic, how do I do a constant stream of bullets?

Mucho thanks in advance for any help.

p.s. give me some views on what the game looks like so far.
"He will join us, or die my Master..." - Darth Vader
Wiggett
21
Years of Service
User Offline
Joined: 31st May 2003
Location: Australia
Posted: 5th Jun 2003 15:19
im not entirely sure on teh code but from what i recall on teh muzzle flash question you should be able to say:
while mouse1= 1 show muzzle flash
if mouse1= 0 hide muzzle flash
provided the muzzle flash is an object or image it should work... err no tin that exact wording, so dont copy and paste it in

i need a copy of the 1.03 exe or i cant work on my game anymore
DarkSith
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 5th Jun 2003 16:25 Edited at: 5th Jun 2003 16:25
so something like this?



dunno if I've just solved it... Pretty silly if I have

"He will join us, or die my Master..." - Darth Vader
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 5th Jun 2003 19:19 Edited at: 5th Jun 2003 19:21
only prob with that is that it will show it for how ever long you hold the mouse down. so you have to put it on a timer or something, you could just only show it if the mouse is clicked and a variable is below a certain amount eg


you could probably do it with the timer() command but this is easier me thinks.

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL [email protected] to work on the new Star Strike project!!!
Wiggett
21
Years of Service
User Offline
Joined: 31st May 2003
Location: Australia
Posted: 6th Jun 2003 08:22
yeah but if its an automatic gun you are going to want to hold it down, maybe if u threw in an animation in the image or object and repeat the firing then the show object should work. saves all that extra coding.

i need a copy of the 1.03 exe or i cant work on my game anymore

Login to post a reply

Server time is: 2025-05-18 21:23:48
Your offset time is: 2025-05-18 21:23:48