Set Sprite Y Scale

Sets the vertical scale of a sprite.


Set Sprite Y Scale spriteID,scale


The y scale of a sprite controls the height of the sprite. This is applied before the rotation.

spriteID is the number of the sprite.

scale is the scale adjustment the sprite. This value is a floating point mutliplier so if you pass 2 it will double the height of the sprite, if you pass 0.5 it will half the height of the sprite.

Note: This function only works in hardware mode

Table of contents