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

Author Topic: Scrolling Text (Final Fantasy Like)  (Read 3749 times)

0 Members and 1 Guest are viewing this topic.

aBallofWin

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Scrolling Text (Final Fantasy Like)
« 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

Tex Killer

  • Full Member
  • ***
  • Posts: 242
    • View Profile
Scrolling Text (Final Fantasy Like)
« Reply #1 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.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Scrolling Text (Final Fantasy Like)
« Reply #2 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

aBallofWin

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Scrolling Text (Final Fantasy Like)
« Reply #3 on: December 28, 2011, 12:07:42 pm »
Cheers for the replies :) I'll just have to experiment around with that

aBallofWin

julen26

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://julen26.blogspot.com
Scrolling Text (Final Fantasy Like)
« Reply #4 on: December 28, 2011, 06:35:11 pm »
Something like that was answered here http://sfml-dev.org/forum/viewtopic.php?t=6490
 :D

aBallofWin

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Scrolling Text (Final Fantasy Like)
« Reply #5 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!!!

 

anything