Trying to move all text on window to the left at one second intervals

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include <iostream>
#include <windows.h>
using namespace std;

int main()
{
    cout << "Goblin Siege" << endl;
    system("Pause");
    cout << "You live in the town of Aragoth. Aragoth goes under siege \n"
    << "on a daily basis \n";
    char rdy = 'b';
    while (rdy != 'y' && 'Y')
    {
          cout << "It you your sole duty to fight off the Goblin hordes, are you ready \n"
    << "for this task? (y/n) \n";
    cin >> rdy;
    system("CLS"); //Resource heavy, but the only practical way.
    if (rdy == 'y' && 'Y')
    {
            cout << string(4, '\n');
            cout << string(4, '\t');
            cout << "BEHOLD!";
            Sleep(500);
            cout << " .";
            Sleep(500);
            cout << " .";
            Sleep(500);
            cout << " .";
            Sleep(500);
            cout << " .";
            Sleep(500);
            cout << " .";
            Sleep(500);
            cout << " .";
            Sleep(500);
            system("CLS");
//////////////////////////////////////////////
           int x = 0;
            cout << string(4, '\n');
            cout << string(1, '\t');
            cout << string('x', '\b') << "The Sword of Aragothia.. Forged in the flames of \n"
            << string(1, '\t') << string('x', '\b') << "The Mountain of Orgoth, hewn with the finest metals of the North \n"
            << string(1, '\t') << string('x', '\b') << "by the Orcs of the Crystal of Toramorre";
             for (int x = 0; x > 9; x++)
            {
                Sleep(500);
            }
///////////////////////////////////////////////////////
            system("Pause");
            }
            else
            {
            cout << "Will you not defend your country from the onslaught of \n"
            << "goblins that lay before thee? If thou hast the courage to defend \n"
            << "input the letter 'y', whatever that means.";
            }
            }
  
    return 0;
}


I'm trying to make the text move to the left at half a second intervals just for dramatic effect.

Edit: I put slashes over and below the area.
Last edited on
Topic archived. No new replies allowed.