You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scales a layer horizontally and vertically. Default is 1 for both. This is the same as calling both Layer.scalex and Layer.scaley separately. If you want to scale evenly, use Layer.scale instead.
layername: The name of the layer to check.
xscale: Amount to scale the layer horizontally. 1.0 is normal size.
yscale: Amount to scale the layer vertically. 1.0 is normal size.
pivotx/pivoty: Optional. Specify the pivot point to scale around. Default is top left. Can use Gfx.CENTER, Gfx.TOP, Gfx.BOTTOM, Gfx.LEFT and Gfx.RIGHT constants here.