Game Development Reference
In-Depth Information
Changing the scale of a sprite
The image_xscale and image_yscale of a sprite allow users to change the horizont-
al and vertical scale of a sprite. The default scale is a value of 1 . Setting this higher will
make the sprite bigger; setting it lower will make the sprite smaller. Setting the scale to a
value lower than 1 will flip the sprite. For example, setting image_xscale to -1 will
draw the sprite flipped to the left.
The following is the example code:
image_xscale=2; //double the size
image_yscale=2; //double the size
Search WWH ::




Custom Search