Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Drawing text over a period of time
Print
Pages: [
1
]
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
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?
Logged
Hapax
Hero Member
Posts: 3379
My number of posts is shown in hexadecimal.
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
)
;
Logged
Selba Ward
-SFML drawables
Cheese Map
-Drawable Layered Tile Map
Kairos
-Timing Library
Grambol
*
Hapaxia Links
*
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Drawing text over a period of time
anything