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 / Help! (please)

Author
Message
DarkSith
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 15th Jul 2003 13:28
"HELP! I need somebody. HELP! Not just anybody. Ooh help me, help me."

I have a gun, and the muzzleflash with a bullet counter.
I try to get the bullet counter to decrease every time the mouse button is pressed. It only goes down to 29! I want it to go down to 0 so then I can reload the gun.

The sample of the code I'm trying to do:
"He will join us, or die my Master..." - Darth Vader
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 15th Jul 2003 13:37 Edited at: 15th Jul 2003 13:39
if mouseclick and bullet>0 then.........

would work better , and if you keep doing

bullet=30

every loop then it will never get lower than 29 because you only do a dec once, cheers.


Mentor

btw..that is the strangest code I ever did see a combination of objects and printed bullets??? what are you trying to do?

Login to post a reply

Server time is: 2025-05-19 11:20:55
Your offset time is: 2025-05-19 11:20:55