Phaser API Documentation

  Version: 
blitter(x, y, key, [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.

key string

The key of the Texture the Blitter object will use.

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