mrxj88 Posted January 19, 2017 Share Posted January 19, 2017 this.sprite.animations.add('dying', Phaser.Animation.generateFrameNames('dying', 1, 6), 5, true); probably a simple answer to this but what is the number 5 refer to in this line of code when using texture altas? Link to comment Share on other sites More sharing options...
javierlog08 Posted January 19, 2017 Share Posted January 19, 2017 Is the frame rate. Following the Phaser API http://phaser.io/docs/2.6.2/Phaser.AnimationManager.html#add Quote The speed at which the animation should play. The speed is given in frames per second. mrxj88 1 Link to comment Share on other sites More sharing options...
mrxj88 Posted January 19, 2017 Author Share Posted January 19, 2017 Ohhh okay i see. haha i was thinking it was the frame that itll stop at once i let go of the key. Thank you Link to comment Share on other sites More sharing options...
Recommended Posts