Phaser API Documentation

  Version: 
reset(x, y, [frame])

Description:

Resets this Bob.

Changes the position to the values given, and optionally changes the frame.

Also resets the flipX and flipY values, sets alpha back to 1 and visible to true.

Parameters:

name type arguments 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.

frame string | number | Phaser.Textures.Frame <optional>

The Frame the Bob will use. It must be part of the Texture the parent Blitter object is using.

Returns:
Description:

This Bob Game Object.

Since: 3.0.0