arun Posted July 16, 2017 Share Posted July 16, 2017 Hi friends, the code below if (this.nextShotAt>this.time.now is not understood. is this.time.now indicates the system's clock time or else? fire: function() { if (this.nextShotAt > this.time.now) { return; } if (this.bulletPool.countDead() === 0) { return; } this.nextShotAt = this.time.now + this.shotDelay Link to comment Share on other sites More sharing options...
WiLD11 Posted July 16, 2017 Share Posted July 16, 2017 https://phaser.io/docs/2.4.4/Phaser.Time.html#now This should be what you're searching for. Link to comment Share on other sites More sharing options...
Recommended Posts