Dev - Lua Libraries

Parameters

Return Values

void

Signature

Description

Sets the scale of the sprite with the given spriteID. The scale is the size relative to the original image size. A scale of 1.0 (default) means that the sprite will be displayed in the original size of the used source image. The scale can be specified separately for the width (widthScale) and height (heightScale). Negative values can be used for mirroring.

Note:

A widthScale and heightScale of 1.0 mean that the sprite has the original size of its source image