How to create an animation frame manually?

Hello. I want to make an animated tile, the source image of the tileset has been loaded as a texture (suppose its name is “tileset_image”). I can access this texture by

this.textures.list["tileset_image"];

then how to create a frame from this texture ? I checked the examples, all of them get a frame by load an atlas json. However, I have loaded the tileset_image, so I don’t want to load it again. Can I create a frame without an atlas json ?

You can use load.spritesheet(…) for the tileset image and then select frames for animations using generateFrameNumbers().

Phaser.Textures.Texture#add() to manually add frames to a texture