Phaser API Documentation

  Version: 
setXY(x, [y], [stepX], [stepY])

Description:

Sets the x, y of each group member.

Parameters:

name type arguments Default description
x number

The amount to set the x property to.

y number <optional> x

The amount to set the y property to. If undefined or null it uses the x value.

stepX number <optional> 0

This is added to the x amount, multiplied by the iteration counter.

stepY number <optional> 0

This is added to the y amount, multiplied by the iteration counter.

Returns:
Description:

This Group object.

Since: 3.21.0