Phaser API Documentation

  Version: 
setPosition([x], [y])

Description:

Sets the position of this particle to the given x/y coordinates.

If the parameters are left undefined, it resets the particle back to 0x0.

Parameters:

name type arguments description
x number <optional>

The x coordinate to set this Particle to.

y number <optional>

The y coordinate to set this Particle to.

Since: 3.60.0