Weapon#fireAtSprite()

fireAtSprite(sprite) → {Phaser.Bullet}

Fires a bullet at the given Sprite. The bullet will be launched from the Weapon.fireFrom position,
or from a Tracked Sprite or Pointer, if you have one set.

Parameters
Name Type Argument Description
sprite Phaser.Sprite <optional>

The Sprite to fire the bullet towards.

Returns

The fired bullet if successful, null otherwise.

Source code: plugins/weapon/WeaponPlugin.js (Line 944)
doc_phaser
2017-02-14 11:19:51
Comments
Leave a Comment

Please login to continue.