I'm writing a Console Text-Based RPG, and for several areas in the game I set the text color, using StdOutHandleblah blah blah. I'm not looking at my code so I can't remember it, but i'm sure you...
Type: Posts; User: Darkflame
I'm writing a Console Text-Based RPG, and for several areas in the game I set the text color, using StdOutHandleblah blah blah. I'm not looking at my code so I can't remember it, but i'm sure you...
Dev C++ is a GUI Application. But It does not Build GUI Applications the way VC++ & Borland C do.
Pretty much have to type in all the code by hand, no instant buttons and the like.
It's still...
I'm running WinMe & using Dec-C++
How do you set it up to actively wait for a key press, and then use that key press. Instead of user typing the letter and hitting enter. I just want them to hit the key. Not have to hit enter as...
Ok, I really tried to figure this out by myself. But it's been a reoccuring bug for a long time.
When you play my game, and die in battle. Then Either Ressurect directly to town, or Load a Saved...
1. Can I see an example of a way to get an input character, without hitting enter afterwards.
i.e. - Hitting A automatically jumps to the switch case for 'A' without hitting enter.
2....
Bah, I feel like an ass. Just ignore everything here.
If you look on line 911 You'll see i ended a " with a ' causing the error throught the program. So stupid, just goes to show hmm...
Thanx...
So what's the solution? Do i add an endl to the end instead of \n?
Hmm this actually helped me solve another problem I had, but this one still exists. I don't get it.
Thanx,
Darkflame
Ok I tried that, but I still get the same error.
I changed the line from:
cout << "You Hitpoints: " << playerlife << '/' << playermaxlife << "\t\t" << enemyname << "'s Hitpoints:" <<...
"unterminated character constant"
it seems to be trying to get rid of all the strings where i use a ' between a " " i.e. "Someone's Something"
now this didn't happen until just a minute ago,...
I'm admittedly still a newb, and maybe shouldn't be trying this yet, until i get really comfortable with C++ but, oh well.
I got a basic console app, its game actually i posted it here in another...
Ahh Thanx.
Thanx alot, this helped greatly.
Right now, i'm trying to get the system to run solidly every time, before i generate some randomess to it.
Thanx for all the help,
Darkflame
Ok I cleaned up the code, those functions that were declard int but returned no number are from previous code where they did, which i changed without changing them, i think i got em all now,
Also...
I'm making this game while I learn C++ it helps me learn, and its fun.
Anyway, couple bugs, i've tried and tried again to fix, but can't seem to do it.
I attached the entire code, so you can...
Ok so I'm relatively new to C++, I'm writing a text-based RPG, similar to LoRD and running into a few problems.
First off, I use getch(), to pause the program and wait for key presses at certain...