Phaser API Documentation

  Version: 
setPosition(x, y)

Description:

Changes the position of this Bob to the values given.

Parameters:

name type description
x number

The x position of the Bob. Bob coordinate are relative to the position of the Blitter object.

y number

The y position of the Bob. Bob coordinate are relative to the position of the Blitter object.

Returns:
Description:

This Bob Game Object.

Since: 3.20.0