Phaser API Documentation

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

Description:

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

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