Phaser API Documentation

  Version: 
moveAbove(child1, child2)

Description:

Moves a Game Object above another one within this Container.

These 2 Game Objects must already be children of this Container.

Parameters:

name type description
child1 Phaser.GameObjects.GameObject

The Game Object to move above base Game Object.

child2 Phaser.GameObjects.GameObject

The base Game Object.

Returns:
Description:

This Container instance.

Since: 3.55.0