image_xscale
From YoYoGames Wiki
Description
(real): The factor by which the image is scaled horizontally
- Read-write
- Scope: Local
Explanation
The local variable xscale indicates the factor by which the image is scaled horizontally.
Examples
xscale=2
- the width of the image will be doubled (and of course it is stretched to fit that size)
xscale=1/2
- the width of the image will be halved.
Suppose a sprite has a width of 24 pixels. When xscale is set to 2, the sprite's width will be 48 pixels.
Note that this variable does not change the sprite resource.
See Also
- [[image yscale|image_yscale]

