Creating an HTML img tag from load.spritesheet

I want to create an img tag from the image loaded with ‘this.load.spritesheet()’.

I found this forum and tried it. The ‘this.load.image()’ function can be used to display loaded images, but the ‘this.load.spritesheet()’ function cannot be used to display specified frames.

Does anyone know how to solve this issue? Please share your ideas.

:wave:

const url = this.textures.getBase64(textureKey, frameName);
const img = document.createElement('img');

img.src = url;

document.body.appendChild(img);