SFML community forums
Help => Graphics => Topic started by: aBallofWin on December 28, 2011, 01:31:34 am
-
Hey, I'm new to SFML, and so far it's awesome, but I need a little help. I'm creating a little RPG, and I'd like to know how I could implement text that appears one word after another, much like in Final Fantasy games. (http://www.youtube.com/watch?v=m9kYCV7X4wA skip to 5 minutes in and you'll see what I mean).
I wouldn't have the faintest clue on how to even start to do this :s and any help would be greatly appreciated!
Cheers!
aBallofWin
-
It would be very similar to frame animating, but with text. You must control the time, and change the text when it is due.
-
You could have a string with the complete text. Every frame, you check how much time has passed since the beginning, and you copy the corresponding amount of characters to another string, which is then used by sf::Text.
-
Cheers for the replies :) I'll just have to experiment around with that
aBallofWin
-
Something like that was answered here http://sfml-dev.org/forum/viewtopic.php?t=6490
:D
-
Something like that was answered here http://sfml-dev.org/forum/viewtopic.php?t=6490
:D
Ah that's even better haha, cheers!!!