i basically made a window making function:
http://www.cprogramming.com/cboard/s...7&pagenumber=1
(scroll down a little on the page)
then i made the message thingy so that it is up to a specific lenght (check out the msg.h file) and then go to my source and check out line 393 which is this:
Code:
void printmessage (int last)
{
HANDLE hStdout;
hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hStdout, FOREGROUND_RED);
for(count=0; count<=43; count++)
message1[count]=message2[count];
for(count=0; count<=43; count++)
message2[count]=message3[count];
for(count=0; count<=43; count++)
message3[count]=msg[last][count];
gotoxy(1,20);
printf("%s", message1);
gotoxy(1,21);
printf("%s", message2);
gotoxy(1,22);
printf("%s", message3);
SetConsoleTextAttribute(hStdout, FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN);
}
message1/2/3 are all global so that their content isn't cleared when the function is exited, so basically each message is 43 characters long, the 2 first for statements take the mesage below it and take it up one so lets say your screen looks like this:
dungeon
of
moria
the next time the function is called it prints the stuff like this
of
moria
(new message)
msg[last][count] is the variable (2 dimensional char array) that has all the messages, when i wanted to print a message i just type something like: printmessage(7); it goes in the function takes up the messages one space up and finds message 7 in msg.h it then takes the content to message3, and then message1/2/3 are all printed on 3 consecutive lines.
hope that was clear.