Phaser API Documentation

  Version: 
propertyValueInc(key, value, [step], [index], [direction])

Description:

Adds the given value to the property as defined in key of each group member.

Parameters:

name type arguments Default description
key string

The property to be updated.

value number

The amount to set the property to.

step number <optional> 0

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

index number <optional> 0

An optional offset to start searching from within the items array.

direction number <optional> 1

The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.

Returns:
Description:

This Group object.

Since: 3.21.0