Phaser API Documentation

  Version: 
setX([value])

Description:

Sets the x position of this Game Object.

Parameters:

name type arguments description
value number <optional>

The x position of this Game Object.

Returns:
Description:

This Game Object instance.

Examples:
Since: 3.0.0