commandline on delay or something:P
Code:
do{
randomize();
result = rand() % 15;
sleep(1);
if (result == 1||result == 6||result == 7)
{
sleep(1);
textattr(4 << 0); cprintf("The enemy strikes you with his pow\r\n\n");
health-=4;
cout << "fitte2 : " << health << " : fitte : " << enemyhp << "\n\n";
if (health<=0) {dead();}
continue;
}
else if (result == 2||result == 3||result == 4||result == 5||result == 8||result == 9)
{
sleep(1);
textattr(2 << 0); cprintf("You hit the enemy hard in its chest\r\n\n");
enemyhp-= 4;
cout << "fitte2 : " << health << " : fitte : " << enemyhp << "\n\n";
continue;
}
else {textattr(3 << 0); cprintf("you dodge enemies blow!\r\n\n");
cout << "fitte2 : " << health << " : fitte : " << enemyhp << "\n\n";
}
while (enemyhp > 0);
}
ok.. what I need to know is how I can make a comand line each time the health and enemy health display's, but not so that you need to freeze the program, like the delay and stuff goes on. is this possible? :confused: