Phaser API Documentation

  Version: 
setScale([x], [y], [point])

Description:

Sets the scale of this Game Object.

Parameters:

name type arguments Default description
x number <optional> 1

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.

point Phaser.Math.Vector2 <optional>

The point (Vector2) from which scaling will occur.

Returns:
Description:

This Game Object.

Examples: