0
101 Aug 02, 2010 at 10:35

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

#### 24 Replies

0
101 Aug 02, 2010 at 23:05

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.

0
101 Aug 03, 2010 at 18:01

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…

0
101 Aug 03, 2010 at 18:48

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!

0
101 Aug 05, 2010 at 07:02

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++.

0
101 Aug 05, 2010 at 13:41

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

0
101 Aug 05, 2010 at 15:10

@Nerd_Skywalker

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

0
118 Aug 05, 2010 at 18:33
<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

My thoughts exactly. Kill it with fire!

0
101 Aug 06, 2010 at 05:14

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

0
101 Aug 07, 2010 at 01:18
0
101 Aug 08, 2010 at 17:25

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. :)

0
101 Aug 08, 2010 at 21:06

u said it.

0
101 Aug 09, 2010 at 05:23

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.

0
118 Aug 09, 2010 at 08:17

I apologise, my reaction was way off.

0
101 Aug 09, 2010 at 12:18

@jacmoe

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?

0
101 Aug 10, 2010 at 08:09

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

0
117 Aug 11, 2010 at 05:15

#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.

0
101 Aug 12, 2010 at 08:04

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?

0
118 Aug 12, 2010 at 12:25

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.

0
101 Aug 16, 2010 at 01:59

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?

0
102 Aug 16, 2010 at 05:17

@supertails: I can’t english your understand. ?!? =)

0
118 Aug 16, 2010 at 05:20

@supertails

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?

I googled for “c tutorial”, picked the first link, scrolled a bit, and found this:

http://einstein.drexel.edu/courses/Comp_Phys/General/C_basics/#conditionals

Finding this stuff is not that hard.

0
101 Aug 16, 2010 at 07:34

what does it mean when they say bit? my computer is 64 bit and most are 32 bit and stuff like that.

0
165 Aug 16, 2010 at 07:50
0
101 Aug 25, 2010 at 21:10

I can say this thread is awesome… very comical… but still can’t understand why the title… :yes: