by skydereign » Wed Jun 03, 2009 9:19 pm
What are you asking for? Do you want the message to erase as new letters are introduced? Or do you want the text to erase itself first, and then type the new message? If so, I would either add an Actor* variable, allowing you to control which text you are changing, or have a function that sets up a char*/char[]. This way the actor only needs to print the string, and another actor, controlling the function, would work. This may not seem optimal, but it does prevent the need to add another variable, if that is what you prefer. Since you are already using a char[], why not implement one more so the comparison and text clean up is easier? If you would like me to explain more, I can, and if you want me just to try to fix it now, as it is, I can try.