Phaser API Documentation

  Version: 
setAlpha([value])

Description:

Set the Alpha level of this Game Object. 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.

Parameters:

name type arguments Default description
value number <optional> 1

The alpha value applied across the whole Game Object.

Returns:
Description:

This Game Object instance.

Since: 3.0.0