Phaser API Documentation

  Version: 
setScale(x, [y])

Description:

Sets the scale of this Game Object.

Parameters:

name type arguments Default description
x number

The horizontal scale of this Game Object.

y number <optional> x

The vertical scale of this Game Object. If not set it will use the x value.

Returns:
Description:

This Game Object instance.

Examples:
Since: 3.0.0