Phaser API Documentation

  Version: 
startFollow(target, [offsetX], [offsetY], [trackVisible])

Description:

Continuously moves the particle origin to follow a Game Object's position.

Parameters:

name type arguments Default description
target Phaser.GameObjects.GameObject

The Game Object to follow.

offsetX number <optional> 0

Horizontal offset of the particle origin from the Game Object.

offsetY number <optional> 0

Vertical offset of the particle origin from the Game Object.

trackVisible boolean <optional> false

Whether the emitter's visible state will track the target's visible state.

Returns:
Description:

This Particle Emitter.