• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Text at Center

Status
Not open for further replies.
Level 1
Joined
May 3, 2007
Messages
3
I've seen maps where there is text displayed at the center of the screen. I can't seem to do this with the normal Game text display. How do I do it? Plus is it possible to change the size of the text also?
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Or you can just do it properly...

JASS:
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
native DisplayTimedTextFromPlayer   takes player toPlayer, real x, real y, real duration, string message returns nothing

Eg:

  • Custom script: call DisplayTimedTextToPlayer( Player( 0 ), 1, 1, 5, "I'm cool" )
Where 0,0 is the normal text display point
 
Status
Not open for further replies.
Top