Author Topic: Trying to make a game history text area that scrolls upwards  (Read 3522 times)

Flinnster

  • Newbie
  • *
  • Posts: 9
    • View Profile
Trying to make a game history text area that scrolls upwards
« on: October 10, 2016, 06:29:38 PM »
Hi,

I'm trying to make a text area that contains game history / information text that will slowly move upwards.

I define the area object with:
Code: [Select]
::OBJECTS <- {
 history_bgpanel = fe.add_artwork( "hist_back.png", 337, 346, 262, 530 ),
 history_blurb = fe.add_text("history", 337, 346, 262, 530),
}


And I get it to scroll using:
Code: [Select]
animation.add( PropertyAnimation( OBJECTS.history_blurb, move_history_blurb2 )
So far so good... the problem then occurs where the history text is always aligned vertically at the centre of the text blurb area.
This means with games that have little history text, nothing appears in place for a while and eventually a bit of text is seen scrolling past! Games with tons of history text are fine.. simply because the text data fills the text box area fully.

Is there any way to make the text start at the top of the text area? ie. be aligned vertically to 'top' rather than always be centered vertically?

Thanks, any help appreciated :)