Phaser API Documentation

  Version: 
setVelocityX(value, [step])

Description:

Sets the horizontal velocity of each Group member.

Parameters:

name type arguments description
value number

The velocity value.

step number <optional>

The velocity increment. When set, the first member receives velocity (x), the second (x + step), and so on.

Returns:
Description:

This Physics Group object.

Since: 3.0.0