image_xscale and image_yscale

image_xscale

A scale factor to make larger or smaller images. A value of 1 indicates the normal size. You must separately set the horizontal xscale and vertical yscale. Changing the scale also changes the values for the image width and height and influences collision events as you might expect. Changing the scale can be used to get a 3-D effect. You can use a value of -1 to mirror the sprite horizontally.

image_yscale

The vertical yscale. 1 is no scaling. You can use a value of -1 to flip the sprite vertically.

Example

image_xscale=0.5;
image_yscale=2;

In this example, the left and right of the image will be squeezed inwards until the sprite is half its original width. It will also be stretched vertically until it is double its original height.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License