Image

The Image is a built-in Phaser object type: Phaser.GameObjects.Image.

You can create an Image object by dropping an Image built-in type or texture from the Blocks view.

Add image from Blocks view.

The main difference between an Image and a Sprite is that the Image objects cannot play sprite animations.

An Image is created in code using the image factory. This is how the scene compiler generates the code of an Image:

const branch_1 = this.add.image(192, 512, "atlas-props", "branch-01");

The Image has properties common to other object types:

Updated on