Phaser API Documentation

  Version: 
setOrigin(originX, [originY], [stepX], [stepY])

Description:

Sets the originX, originY of each group member.

Parameters:

name type arguments description
originX number

The amount to set the originX property to.

originY number <optional>

The amount to set the originY property to. If undefined or null it uses the originX value.

stepX number <optional>

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

stepY number <optional>

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

Returns:
Description:

This Group object.

Since: 3.21.0