spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Overlay functions and properties

SetText (overlay)

(Formerly known as SetTextOverlay, which is now obsolete)

Overlay.SetText(int width, FontType font, int color, string text, ...)
Replaces the specified overlay with a new one, at the same co-ordinates but with the new specified text, width, font and colour.

You can insert the value of variables into the message. For more information, see the string formatting section.

Example:

Overlay* myOverlay = Overlay.CreateTextual(50,80,120,Game.SpeechFont,15,"This is a text overlay");
Wait(200);
myOverlay.SetText(120,Game.SpeechFont,15,"This is another text overlay");
will create a text overlay , wait for 200 game cycles (about 5 seconds) and then replace the overlay with another one.

See Also: Overlay.CreateTextual, Overlay.Remove


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.