No Blood

B7abce834bfa7aefa30fb747ac2ba702
0
supertails 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

Please log in or register to post a reply.

Eb3cfff1925eec543d8b53b9b53a32c7
0
Goldbott 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.

8676d29610e6c98d6dd2d9c38528cd9c
0
alphadog 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…

46407cc1bdfbd2db4f6e8876d74f990a
0
Kenneth_Gorking 101 Aug 03, 2010 at 18:48

@alphadog

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!

B7abce834bfa7aefa30fb747ac2ba702
0
supertails 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++.

B2d356f97a3d0dec8ae2d8c1e1fa1c2d
0
Nerd_Skywalker 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

B7abce834bfa7aefa30fb747ac2ba702
0
supertails 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

https://sourceforge.net/projects/noblood/files/No%20Blood%20Level%201.cpp/download

3c5be51fdeec526e1f232d6b68cc0954
0
Sol_HSA 119 Aug 05, 2010 at 18:33
<snip>
cout << "1. To Start" << endl;
cout << "2. To Exit" << endl;
cout << "3. Read License" <<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!

B7abce834bfa7aefa30fb747ac2ba702
0
supertails 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.

Cddd845778affc94b6f5913c57d1e96b
0
jacmoe 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. :)

B7abce834bfa7aefa30fb747ac2ba702
0
supertails 101 Aug 08, 2010 at 21:06

u said it.

Eb3cfff1925eec543d8b53b9b53a32c7
0
Goldbott 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.

3c5be51fdeec526e1f232d6b68cc0954
0
Sol_HSA 119 Aug 09, 2010 at 08:17

I apologise, my reaction was way off.

8676d29610e6c98d6dd2d9c38528cd9c
0
alphadog 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?

B7abce834bfa7aefa30fb747ac2ba702
0
supertails 101 Aug 10, 2010 at 08:09

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

B20d81438814b6ba7da7ff8eb502d039
0
Vilem_Otte 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.

Here are good C++ tutorials in english - http://www.cplusplus.com/doc/tutorial read them, they’ll help you improve your programming skills to write your game in better way.

B7abce834bfa7aefa30fb747ac2ba702
0
supertails 101 Aug 12, 2010 at 08:04

I thought true/false statements were only like.

Dead false while Dead is false continue playing
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?

3c5be51fdeec526e1f232d6b68cc0954
0
Sol_HSA 119 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.

B7abce834bfa7aefa30fb747ac2ba702
0
supertails 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?

17ba6d8b7ba3b6d82970a7bbba71a6de
0
vrnunes 102 Aug 16, 2010 at 05:17

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

3c5be51fdeec526e1f232d6b68cc0954
0
Sol_HSA 119 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.

B7abce834bfa7aefa30fb747ac2ba702
0
supertails 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.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 168 Aug 16, 2010 at 07:50
9fb57988ee2aa7efeafc3bfb4063c641
0
Manuel_Marino 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: