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.

2D All the way! / if statement

Author
Message
Morloc
21
Years of Service
User Offline
Joined: 21st Mar 2004
Location: UK
Posted: 1st Apr 2004 23:43
Ive got this statement in my code



Basically bullets = 7 so when you press fire in decreases bullets. if it reaches 0 then it displays reload

the problem with the above is that it always displays reload. Can someone see what im doing wrong. Ill keep at it at the mean time as im sure i need 2 if statement.

Morloc
Morloc
21
Years of Service
User Offline
Joined: 21st Mar 2004
Location: UK
Posted: 1st Apr 2004 23:46
dont worry all sorted. as i thought 2 if statements needed.

if theres a moderator about please delete this post

Morloc
Tapewormz
22
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 8th Apr 2004 05:20
Yup, you got it. You basically said print reload when bullets = 0 AND when mouseclick() <> 1. The second if statement was the condition you needed.

Quote: " Timesoft - Your wife is death. How? NO idea.
But it is murder. REVENGE!!!!!!!!!"

Hands down the funniest synopsis for a game ever. All your base are belong to us!

Login to post a reply

Server time is: 2025-05-14 06:18:11
Your offset time is: 2025-05-14 06:18:11