How do I Headline Scrolling Text?

0 favourites
  • 3 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • Hey all,

    So I am trying to have a text box at the top of the screen, in which, the text scrolls to the left until it reaches its end and then restarts at the beginning, I am having trouble locating any help on the matter and would greatly appreciate any input, I've attached a sample pic that demonstrates what I am talking about.


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Create a text element and add a bullet behavior. Uncheck 'set angle' on the behavior.

    And, here's your code:

    + System: On start of layout

    -> Text: Set position to (ViewportRight(0)+1, 0)

    -> Text: Set Bullet speed to -150

    + System: Text.X+Text.Width+1 < ViewportLeft(0)

    -> Text: Set X to ViewportRight(0)+1

    This is a very, very basic 'ticker.' If your text is static, this will do the job. If your text changes, you're going to have to come up with your own way to set the width of the text box because that's how it decides when to reset back to the beginning.

  • thank you very much amigo

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