SFML community forums

Help => Graphics => Topic started by: aBallofWin on December 28, 2011, 01:31:34 am

Title: Scrolling Text (Final Fantasy Like)
Post 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
Title: Scrolling Text (Final Fantasy Like)
Post by: Tex Killer on December 28, 2011, 03:15:23 am
It would be very similar to frame animating, but with text. You must control the time, and change the text when it is due.
Title: Scrolling Text (Final Fantasy Like)
Post by: Nexus on December 28, 2011, 11:12:59 am
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.
Title: Scrolling Text (Final Fantasy Like)
Post by: aBallofWin on December 28, 2011, 12:07:42 pm
Cheers for the replies :) I'll just have to experiment around with that

aBallofWin
Title: Scrolling Text (Final Fantasy Like)
Post by: julen26 on December 28, 2011, 06:35:11 pm
Something like that was answered here http://sfml-dev.org/forum/viewtopic.php?t=6490
 :D
Title: Scrolling Text (Final Fantasy Like)
Post by: aBallofWin on December 28, 2011, 09:29:22 pm
Quote from: "julen26"
Something like that was answered here http://sfml-dev.org/forum/viewtopic.php?t=6490
 :D


Ah that's even better haha, cheers!!!