Phaser API Documentation

  Version: 
setPan(value)

Description:

Sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).

Has no audible effect on HTML5 Audio Sound, but still generates the PAN Event.

Parameters:

name type description
value number

The pan of the sound. A value between -1 (full left pan) and 1 (full right pan).

Returns:
Description:

This Sound instance.

Since: 3.50.0