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
    * Text display / Speech functions

DisplayAt

DisplayAt(int x, int y, int width, string message, ...)

Identical to the "Display" function, only this allows you to define the position and size of the window where the text is displayed. The X and Y variables define the co-ordinates of the upper-left corner of the window.

The WIDTH variable defines the maximum width of the window. The height is then automatically calculated so that the message fits into the window.

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

Note: This is a blocking call. See the "Display" help for more information.

Example:

DisplayAt (50,50,100, "This is a message");
will display the message at coordinates 50,50 in a box 100 pixels wide.

See Also: Display, DisplayAtY


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