Phaser API Documentation

  Version: 
setFrame([frame])

Description:

Changes the Texture Frame being used by this Bob. The frame must be part of the Texture the parent Blitter is using. If no value is given it will use the default frame of the Blitter parent.

Parameters:

name type arguments description
frame string | number | Phaser.Textures.Frame <optional>

The frame to be used during rendering.

Returns:
Description:

This Bob Game Object.

Since: 3.0.0