Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Drawing text over a period of time  (Read 1279 times)

0 Members and 1 Guest are viewing this topic.

Charsmud

  • Newbie
  • *
  • Posts: 30
    • View Profile
Drawing text over a period of time
« on: December 22, 2014, 03:34:02 am »
I am trying to get text to draw one character at a time over an indeterminate period of time.  However, it seems there isn't a way to append strings using sf::Text;  any suggestions of how to do this?

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Drawing text over a period of time
« Reply #1 on: December 22, 2014, 03:42:53 am »
sf::Text text;
...
std::string showThisString;
// change showThisString here (accumulate how much text you wish to show)
text.setString(showThisString);
...
window.draw(text);
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything