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/GameObjectCreator.js (Line 134)
Please login to continue.