Usage
Syntax: showimg(int index, str imagename, float x, float y);
Returns image object.
Explanation
showimg renders an image on the image board or the GUI screen layer, depending upon the layer that the image is drawn on. Each 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.
Example
//#CLIENTSIDE function onCreated() { showimg(200, "block.png", player.x, player.y); }
... renders a block at the top left corner of your player.
Categories
CategoryFunctionClientside
CategoryFunctionServerside
There are no comments on this page. [Add comment]