.$scale

The scale factor of the object. If used only one parameter it will change both (x,y)

.$scale(x,y)

  • x <Number> Scale x
  • y <Number> Scale y

Example:

sprite.$scale(1.5);

// or

sprite.$scale(2,1.5);