Hello,
I’m trying to play a sound at the start of a animation like this:
this.anims.create({
key: "linkSprakle",
duration: this.gameSpeed,
frames: this.anims.generateFrameNames("links", {
prefix: "link",
suffix: ".png",
start: 1,
end: 15,
}),
onStart: () => {
this.sound.play("link_formed_sfx");
},
});
But that is not working, also the same onStart callback implementation in the example, https://phaser.io/examples/v3/view/animation/on-start-callback, is not working either, it only works in Phaser v3.3 and lower.
Any ideas on how to play a sound at the start of animation?
Thanks