Is it possible to load animations from an SVG file?
I tried to use the following code, but it was able to load an SVG file containing a single image.
Thank you very much
class Example extends Phaser.Scene
{
preload ()
{
this.load.svg('face', 'https://cdn.svgator.com/assets/main-page/fold2/face.svg');
}
create ()
{
this.add.image(400, 300, 'face');
}
}
const config = {
type: Phaser.AUTO,
width: 800,
height: 600,
backgroundColor: '#efefef',
parent: 'phaser-example',
scene: Example
};
const game = new Phaser.Game(config);