- Joined
- Nov 18, 2008
- Messages
- 1,537
How do I make it so text messages appear in different parts of the screen. For example, on the bottom like subtitles, or straight in the middle like a title.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
native DisplayTextToPlayer takes player toPlayer, real x, real y, string message returns nothing
native DisplayTimedTextToPlayer takes player toPlayer, real x, real y, real duration, string message returns nothing
// this will display auto-timed message to red player right under the game clocks
call DisplayTextToPlayer(Player(0), 0.3, 0.65, "Have you an apple cake?")
// this will display message to blue player for 5 sec at the center of the gamescreen
call DisplayTimedTextToPlayer(Player(1), 0.365, 0.27, 5.0, "FIGHT!")
// this will display message to all players for 10 minutes near the food usage window
local integer i = 0
loop
call DisplayTimedTextToPlayer(Player(i), 0.65, 0.7, 600.0, "Food usage")
set i = i + 1
exitwhen i > 11
endloop
call DisplayTextToPlayer(Player(0), 0.0, 0.0, "<your text>")
Custom script: call DisplayTextToPlayer(Player(0), 0.3, 0.65, "Have you an apple cake?")
call DisplayTimedTextToPlayer(Player(0), 0.2, 0.28, 10.00, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" + "<your text>")
