Marquee text

Jolly chap*

New Member
Reaction score
34
I don't know what it's called, but I think it's called the marquee effect or something. Anyway. It's when a string of text goes from left to right (or vice versa) then appears again on the left and the effect continues.

How to do it in a trigger? I would like to have a text that can do that or on a multiboard. Thanks if you know how to do this. :D
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Trigger:
  • Text Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Text = Hi, this is an annoying scrolling text...
      • Set StringLength = ((Length of Text) + 10)
      • Set Text = (Text + ( + Text)) <- I'm addding 10 spaces here
      • For each (Integer A) from 1 to StringLength, do (Actions)
        • Loop - Actions
          • Set Parts[((Integer A) - 1)] = (Substring(Text, (Integer A), ((Integer A) + 10)))
      • Set StringCurrent = 0


Trigger:
  • Text Scroll
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Game - Display to (All players) the text: Parts[StringCurrent]
      • Set StringCurrent = ((StringCurrent + 1) mod StringLength)


Replace the game - display with something less annoying...
Floating text would work.
Or some cell in a multiboard. (Make sure it's large enough, some 8% or so)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top