Hey, anyone know how to go about displaying a body of text, one line at a time?
I want to display lyrics to a Midnight Oil song, but want to reveal them one line at a time.
ShadowUK recently showed how to animate text in a paragraph-object
ie.
... but I'm looking for a way to reveal text a whole line at a time with, say a 2 second gap between lines, rather than having individual letters race across the screen like it does with Shadow's code.Code:local Text = [[Hey look this is animated and this example is awesome.]]; for Position = 1, String.Length(Text) do Paragraph.SetText("Paragraph1", string.sub(Text, 0, Position)); Application.Sleep(10); end
Because I'm looking to display lyrics to a song in this fashion, I don't really want to have to create a seperate paragraph-object for each line (of which there are 23 in total) ... so using a timer to delay the appearance of 23 paragraph-objects would be a pain in the butt.
So, does anyone know of a cool workaround for this?

Reply With Quote

