Lobster
Old Fogey ofthe site
- Reaction score
- 90
This is a simple way to get a scrolling message in multiboards.
Can be edited depending on the length of the text, and the speed. How to do so is included in the map.
Here is the trigger code if you need it, or dont want to dl the map:
Create the follwing variables:
Variable Variable type
Multiboard Multiboard
Number of letters integer
Can be edited depending on the length of the text, and the speed. How to do so is included in the map.
Here is the trigger code if you need it, or dont want to dl the map:
Code:
Create multiboard
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Multiboard - Create a multiboard with 2 columns and 1 rows, titled Message
Set Multiboard = (Last created multiboard)
Multiboard - Set the display style for Multiboard item in column 1, row 1 to Show text and Hide icons
Multiboard - Set the width for Multiboard item in column 1, row 1 to 40.00% of the total screen width
Multiboard - Set the color for Multiboard item in column 1, row 1 to (0.00%, 0.00%, 100.00%) with 0.00% transparency
Multiboard - Show Multiboard
Trigger - Turn on Set message <gen>
Code:
Set message
Events
Time - Every 0.20 seconds of game time
Conditions
Actions
Multiboard - Set the text for Multiboard item in column 1, row 1 to (<Empty String> + (Substring(Messageboard, (Numberofletters - 10), Numberofletters)))
Set Numberofletters = (Numberofletters + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Numberofletters Greater than or equal to 40
Then - Actions
Set Numberofletters = 1
Else - Actions
Do nothing
Multiboard - Show Multiboard
-------- current text has 30 letters --------
Create the follwing variables:
Variable Variable type
Multiboard Multiboard
Number of letters integer