# No Blood

24 replies to this topic

### #1supertails

New Member

• Members
• 11 posts

Posted 02 August 2010 - 10:35 AM

I made a video game but I'm not sure how to use true, false statements in it. www.joepow.info

### #2Goldbott

New Member

• Members
• 26 posts

Posted 02 August 2010 - 11:05 PM

Um what did you you use to make it? true/false statements are usually part of a loop (ie. if (something == true) then dosomething end) the format of a loop depends on your programming language.

DevMaster Staff

• Moderators
• 1716 posts

Posted 03 August 2010 - 06:01 PM

Great. Another 9-11 conspiracist.

"I made a video game but I'm not sure how to use true, false statements in it."

To me, this seems like bait to get people to look at the site. How can you make a video game without understanding Boolean expressions?!?

I am an inch from killing this as spam...
Hyperbole is, like, the absolute best, most wonderful thing ever! However, you'd be an idiot to not think dogmatism is always bad.

### #4Kenneth Gorking

Senior Member

• Members
• 939 posts

Posted 03 August 2010 - 06:48 PM

To me, this seems like bait to get people to look at the site. How can you make a video game without understanding Boolean expressions?!?

I am an inch from killing this as spam...
My thoughts exactly. Kill it with fire!
"Stupid bug! You go squish now!!" - Homer Simpson

### #5supertails

New Member

• Members
• 11 posts

Posted 05 August 2010 - 07:02 AM

Not at all. I could get more people to view it but it's not fully ready yet. Like with compatibility. I made the game with my mind, with secret rooms and puzzles. yet it could be much more. I simply came asking for help no more. btw I used c++.

### #6Nerd_Skywalker

Valued Member

• Members
• 215 posts

Posted 05 August 2010 - 01:41 PM

I want to see the source code if he made a game without any true/false related things in it...I would be very impressed :D

TheNut said:

"Hmm, yes. Strong is the force with this one"

### #7supertails

New Member

• Members
• 11 posts

Posted 05 August 2010 - 03:10 PM

Nerd_Skywalker said:

I want to see the source code if he made a game without any true/false related things in it...I would be very impressed :D

### #8Sol_HSA

Senior Member

• Members
• 513 posts
• LocationNowhere whenever

Posted 05 August 2010 - 06:33 PM

<snip>
cout << "1. To Start" << endl;
cout << "2. To Exit" << endl;
cin >> choice;
if (choice == 1) goto St;
if (choice == 2) goto Ex;
if (choice == 3) goto L;
Ex:
{int choice0;
cout << "Hope you'll play next time." << endl;
cin >> choice0;
if (choice0 == 1) goto Sr;
if (choice0 == 2) goto Sr;
if (choice0 == 3) goto Sr;
if (choice0 == 4) goto Sr;}
St:
{int choice2;
cout << "You are on the Mansion Grounds. You married into money." << endl;
cout << "Everything is good and calm here" << endl;
cin >> choice2;
if (choice2 == 1) goto N11;
if (choice2 == 2) goto S12;
if (choice2 == 3) goto E13;
if (choice2 == 4) goto W14;}
S12:
<snip>


After glancing at the code, snippet of which you can find above, I'll just answer with a quote from this thread:

Kenneth Gorking said:

My thoughts exactly. Kill it with fire!

http://iki.fi/sol - my schtuphh

### #9supertails

New Member

• Members
• 11 posts

Posted 06 August 2010 - 05:14 AM

Just because it doesn't have anything fancy in it doesn't mean it can't be fun.

### #10supertails

New Member

• Members
• 11 posts

Posted 07 August 2010 - 01:18 AM

supertails said:

Code Deleted.

### #11jacmoe

New Member

• Members
• 3 posts

Posted 08 August 2010 - 05:25 PM

Wow, people:
If this is how you treat new people here, then I guess this will be my first and only post!

I am appalled.

If you don't have anything nice to say, don't say anything.

Elitist bastards. :)

### #12supertails

New Member

• Members
• 11 posts

Posted 08 August 2010 - 09:06 PM

u said it.

### #13Goldbott

New Member

• Members
• 26 posts

Posted 09 August 2010 - 05:23 AM

I think they're just tired of newer devs coming here and posting things like this here. This forums seems to be less of a training ground for those learning and more of a place for the experienced to show off their work. Their annoyance does seem a bit misplaced though. Either way I would just advise you to ask in a way that makes it clear you want to learn. Out line your problem as best you can and try to be respectful.

### #14Sol_HSA

Senior Member

• Members
• 513 posts
• LocationNowhere whenever

Posted 09 August 2010 - 08:17 AM

I apologise, my reaction was way off.
http://iki.fi/sol - my schtuphh

DevMaster Staff

• Moderators
• 1716 posts

Posted 09 August 2010 - 12:18 PM

jacmoe said:

If this is how you treat new people here, then I guess this will be my first and only post!

You are right. I should have been nicer. To that end, I put a post-it note by my monitor. It says "ABN: Always Be Nice". I added cute bunnies and lovely butterflies from my daughters sticker collection to ensure maximal effect in my curmudgeon's mind.

In counterpoint, is it okay to go to a carpentry site and state: "I made a Heppelwhite armoire but I'm not sure how to use a hammer to do it?", or does that push the limits of reasonableness?
Hyperbole is, like, the absolute best, most wonderful thing ever! However, you'd be an idiot to not think dogmatism is always bad.

### #16supertails

New Member

• Members
• 11 posts

Posted 10 August 2010 - 08:09 AM

It's ok everyone. I'm not upset but I can understand your point though.

### #17Vilem Otte

Valued Member

• Members
• 345 posts

Posted 11 August 2010 - 05:15 AM

#supertails - uh, you are using true/false statements in your code, though you might not know that you are using them ...
e.g. if - if some condition is true (e.g. condition is right and equals) than 'goto ...' in your case. If the condition is false (e.g. it isn't right and not equals) then you do nothing.

Although try to learn boolean operations first, also a bit of procedural programming and switches could help you more.

My blog about game development (and not just game development) - http://gameprogramme...y.blogspot.com/

If you don't know how to speed up application, go "roarrrrrr!", hit the compiler with the club and use -O3 :D

### #18supertails

New Member

• Members
• 11 posts

Posted 12 August 2010 - 08:04 AM

I thought true/false statements were only like.

when Dead is true then say I hope have better luck next time.

also if I'm using true/false statements in the code then why is it that when I enter a # other then 1, 2, and 3 or 1, 2, 3, and 4 it's takes me to a random place in the game or when I enter x or other non numbers it plays a random message over and over and over again?

### #19Sol_HSA

Senior Member

• Members
• 513 posts
• LocationNowhere whenever

Posted 12 August 2010 - 12:25 PM

supertails: my primer on boolean logic may be of some help;
http://iki.fi/sol/boolean.html - please do tell me if something's unclear.
http://iki.fi/sol - my schtuphh

### #20supertails

New Member

• Members
• 11 posts

Posted 16 August 2010 - 01:59 AM

I've been reading up on the boolean but it doesn't really explain how they work with C++ that well like what is feature?

#### 1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users