Weapon#bulletFrameCycle

bulletFrameCycle : boolean

If you've added a set of frames via Weapon.setBulletFrames then you can optionally
chose for each Bullet fired to use the next frame in the set. The frame index is then
advanced one frame until it reaches the end of the set, then it starts from the start
again. Cycling frames like this allows you to create varied bullet effects via
sprite sheets.

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

Please login to continue.