How do I change the width and height of a spritesheet?

Good afternoon, please tell me how to change the spritesheet width and height?


You can use setScale or setSize

E.g. person.setSize( www, hhh )

https://newdocs.phaser.io/docs/3.55.2/focus/Phaser.Physics.Arcade.Image-setSize

If I use this, the image will be smeared.

You can somehow set width and height when creating a sprite, when processing an image, and then the function will select frameWidth and frameHeight.

Maybe you can create an svg-block and create a sprite based on it… Don’t know.

I solved the problem with a self-written function.