GM: image yscale
From GMpedia.org Wiki
|
yscale | |
| Type: | variable |
| Globalism: | Local |
| Editable: | Yes |
- The correct title of this article is image_yscale. It appears incorrectly here because of technical restrictions.
The local variable yscale indicates the factor by which the image is scaled vertically.
[edit] Examples
yscale=2
- the height of the image will be doubled (and of course it is stretched to fit that size)
yscale=1/2
- the height of the image will be halved.
[edit] Explanation
Suppose a sprite has a height of 32 pixels. When yscale is set to 2, the sprite's height will be 64 pixels.
Note that this variable does not change the sprite resource.

