Phaser API Documentation

  Version: 
setAlpha(value)

Description:

Set the Alpha level of this Bob. The alpha controls the opacity of the Game Object as it renders. Alpha values are provided as a float between 0, fully transparent, and 1, fully opaque.

A Bob with alpha 0 will skip rendering.

Parameters:

name type description
value number

The alpha value used for this Bob. Between 0 and 1.

Returns:
Description:

This Bob Game Object.

Since: 3.0.0