phaser-ondamaged-signal

1.0.1 • Public • Published

It's dispatched after damage is applied but before the sprite is killed (if necessary).

var sprite = game.add.sprite();

sprite.onDamaged.add(function (amount, health, maxHealth){
  // …
}, sprite);

Readme

Keywords

Package Sidebar

Install

npm i phaser-ondamaged-signal

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • samme