Phaser API Documentation

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

Description:

Adds the given value to the x, y of each group member.

Parameters:

name type arguments Default description
x number

The amount to be added to the x property.

y number <optional> x

The amount to be added to the y property. 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