Skip to content

Referance to last added sound via SoundManager.play() #5658

@halilcakar

Description

@halilcakar

Hello,

Is it possible to add a referance last added sound to SoundManager instance?

this.sound.play('some sound key'); // how to referance this?

// maybe referance it through manager?
this.sound.last.once(Phaser.Sound.Events.COMPLETE, this.someFunctionToCall);

What would you think about this @photonstorm? :)

If you think this could helpfull, I would love to make a PR 👍

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions