Syntax: showtext(int index, float x, float y, str font, str style, str text) ;
Returns object.


showtext Renders text in the game world. Each showtext image must be given it's own ID using the index parameter.

When on the serverside, the image index must be below 200 to be displayed to players. However, on the clientside, the image index has special behavior. If the image index is below 200, the image will be displayed to other players in the level, whereas above, the image will only be displayed to the current player.


function onCreated()
  showtext(200, 30, 30, "Tahoma", "b","Hello World");

... renders text on the screen in the Tahoma font, bolded, saying 'Hello World'



There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki