audioSprite(key) → {Phaser.AudioSprite}
Creates a new AudioSprite object.
Parameters
Name | Type | Description |
---|---|---|
key | string | The Game.cache key of the sound that this object will use. |
Returns
The newly created AudioSprite object.
- Source code: gameobjects/GameObjectFactory.js (Line 262)
Please login to continue.