Phaser API Documentation

  Version: 
blitter(x, y, texture, [frame])

Description:

Creates a new Blitter Game Object and adds it to the Scene.

Note: This method will only be available if the Blitter Game Object has been built into Phaser.

Parameters:

name type arguments description
x number

The x position of the Game Object.

y number

The y position of the Game Object.

texture string | Phaser.Textures.Texture

The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.

frame string | number <optional>

The default Frame children of the Blitter will use.

Returns:
Description:

The Game Object that was created.

Since: 3.0.0