Phaser API Documentation

  Version: 
batchTextureFrame(frame, x, y, tint, alpha, transformMatrix, [parentTransformMatrix])

Description:

Adds a Texture Frame into the batch for rendering.

Parameters:

name type arguments description
frame Phaser.Textures.Frame

The Texture Frame to be rendered.

x number

The horizontal position to render the texture at.

y number

The vertical position to render the texture at.

tint number

The tint color.

alpha number

The alpha value.

transformMatrix Phaser.GameObjects.Components.TransformMatrix

The Transform Matrix to use for the texture.

parentTransformMatrix Phaser.GameObjects.Components.TransformMatrix <optional>

A parent Transform Matrix.

Since: 3.12.0