arun Posted July 16, 2017 Report 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 Quote Link to comment Share on other sites More sharing options...
WiLD11 Posted July 16, 2017 Report Share Posted July 16, 2017 https://phaser.io/docs/2.4.4/Phaser.Time.html#now This should be what you're searching for. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.