Phaser API Documentation

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


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


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.


This Group object.

Since: 3.21.0