# phaser-plugin-follow

> Let objects follow other objects

Latest version **2.0.2** (published 2019-09-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install phaser-plugin-follow
pnpm add phaser-plugin-follow
yarn add phaser-plugin-follow
bun add phaser-plugin-follow
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2019-09-17 |
| First published | 2018-08-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | samme |
| Maintainers | samme |
| Keywords | phaser-plugin, phaser3-plugin |

## Links

- npm: https://www.npmjs.com/package/phaser-plugin-follow
- Repository: https://github.com/samme/phaser-plugin-follow
- Homepage: https://github.com/samme/phaser-plugin-follow#readme
- Issues: https://github.com/samme/phaser-plugin-follow/issues
- npm.io page: https://npm.io/package/phaser-plugin-follow

## Recent versions

- 2.0.2 (latest) — 2019-09-17
- 2.0.1 — 2019-06-13
- 2.0.0 — 2019-03-04
- 1.0.1 — 2019-02-19
- 1.0.0 — 2018-08-12

## README

Phaser 3 Follow Plugin
======================

```javascript
new Phaser.Game({
  plugins: {
    scene: [{ key: 'FollowPlugin', plugin: PhaserFollowPlugin, mapping: 'follow' }]
  }
});
```

`PhaserFollowPlugin` is a global reference to the plugin class. The package module exports the same value.

In a scene:

```javascript
this.follow.add(follower, {
  target: target, // Required.
  offsetX: 0,
  offsetY: 0,
  rotate: false,
  rotateOffset: false
});

this.follow.pause(follower);

this.follow.resume(follower);

this.follow.remove(follower);
```

---
_Source: https://npm.io/package/phaser-plugin-follow · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
