How do I Scroll Text Up

0 favourites
  • 2 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Hey there,

    I am trying to create a text window that will scroll up when I add a new line of text. Just like what you would see in any games chat window. I know that the TextBox object has an action for this but I can't use a TextBox because I don't want that big white background. How would I go about manually scrolling the text upward on a simple Text or Sprite Font Object?

    Thank You,

    Stephen

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • To add text to an already existing text or spritefont object you can use the append action :

    newline & your_text_to_add

    This will jump a line at the end of the text object and add your text.

    Now the issue is that you may have to resize the object and position it so that it displays only the new text.

    So another way is to do the opposite :

    Your_text_to_add & newline & Text.text

    This way, the new line will always be on top, but on the bottom you won't be able to slide down to see the previous text (the object is not really meant to do that).

    As mentioned if you really want to allow for a complete slide, you have to resize the object and then allow it to slide, using possibly some layer mask to keep it in a certain position.

    Example of masking and scrolling

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)